开发者

Powershell verb for destroying a resource

开发者 https://www.devze.com 2023-02-16 22:12 出处:网络
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-ClearCaseVi开发者_如何学Goew. I\'d also li

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-ClearCaseVi开发者_如何学Goew. 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!


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).


Anything wrong with 'delete' in your situation?

0

精彩评论

暂无评论...
验证码 换一张
取 消