문제

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!

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top