How can I delete a namespace and all it's content from CLI?
If I try with
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:
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
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