This question asks which verb to use to "delete" a resource created with new-Thing
. Remove is the natural accepted verb, and so you have a remove-Thing
cmdlet.
But we have several cases where Thing
is also a container, which we can add items to or remove items from. At the moment we have
Remove-Thing myThing # Destroys myThing
Remove-ItemFromThing myThing myItem # Removes myItem from myThing
which is pretty horrible. Is there a more elegant way of doing this?