Powershell verb for destroying a resource

邮差的信 提交于 2019-12-10 17:22:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!