Delete namespaces with proxmox-backup-client with delete-groups=true

VictorSTS

Renowned Member
Oct 7, 2019
528
166
68
Spain
How can I delete a namespace and all it's content from CLI?

If I try with proxmox-backup-client namespace delete NAMESPACE and the namespace has backups, I get a message:
Code:
Error: only partially deleted due to existing groups but `delete-groups` not true

I know the checkbox in the UI "delete all backup groups" and the API parameter delete-groups in the DELETE method [1], but I can't find the way to do it from CLI in one shot (I could cycle through all the backups, remove them one by one and then remove the namespace...).

The only supported parameter seems to be the repository:
Code:
Usage: proxmox-backup-client namespace delete [<ns>] [OPTIONS]
 <ns>       <string>
             Namespace.

Optional parameters:

 --repository <string>
             Repository URL.

Maybe I'm just a bit tired today, any help is appreciated

[1] https://pbs.proxmox.com/docs/api-viewer/index.html#/admin/datastore/{store}/namespace
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!