chris-peterson / pwsh-gitlab

:computer: PowerShell module for GitLab
MIT License
22 stars 10 forks source link

Is there a remove-gitlabproject command? #82

Closed github2020-g closed 1 month ago

github2020-g commented 1 year ago

I can use remove-gitlabgroup command successfully. When I want remove a gitlab project ,I can't find remove-gitlabproject.

Am I missing some command list?

PS /root> Get-Help Remove-GitlabProject

Name Category Module Synopsis


Remove-GitlabProjectHook Function GitlabCli …
Remove-GitlabProjectIntegration Function GitlabCli …
Remove-GitlabProjectMember Function GitlabCli …
Remove-GitlabProjectVariable Function GitlabCli …

https://docs.gitlab.com/ee/api/projects.html#delete-project

Thanks.

chris-peterson commented 1 year ago

typically I've used Invoke-GitlabProjectArchival (aka Archive-GitlabProject) to "soft delete" projects.

but I see no reason why not to add Remove-GitlabProject as well

github2020-g commented 1 year ago

typically I've used Invoke-GitlabProjectArchival (aka Archive-GitlabProject) to "soft delete" projects.

but I see no reason why not to add Remove-GitlabProject as well

Thank you chris, Invoke-GitlabProjectArchival is also a workround at present.

chris-peterson commented 1 month ago

Fixed in https://github.com/chris-peterson/pwsh-gitlab/commit/08d718fb9557e6171349eae65dfb892096e63c64

github2020-g commented 1 month ago

Dear,Thanks for your message.I will get back to you shortly.Have a good day! Regards Yueheng Guo