问题
I've been trying to stick with the approved list of Powershell verbs when naming my cmdlets. I have a function which creates a resource, so it's called New-ClearCaseView. I'd also like to make a function which destroys this resource once it is no longer in use. However, I don't see any pair verb to go with New. The Remove verb is closest I think, but that's for removing a resource from a collection, not for actually destroying a resource.
Any suggestions? Is there any more up to date list of accepted Powershell verbs?
Thanks!
回答1:
Remove would be the normal verb to use (eg. del
is an alias for Remove-Item
).
Unpublish might be another possibility (but only if your new is being used in a sense like publish). Equally Unregister (normally paired with register).
回答2:
Anything wrong with 'delete' in your situation?
来源:https://stackoverflow.com/questions/5300783/powershell-verb-for-destroying-a-resource