Delete a backup

Contributors dmp-netapp Download PDF of this page

You can delete a backup associated with a managed application.

Before you begin

You must have the following:

  • ID of the managed app that owns the backup. If needed you can use the workflow List the managed apps to locate the application.

  • ID of the backup you want to delete. If needed you can use the workflow List the backups to locate the snapshot.

1. Delete the backup

Perform the following REST API call.

Note You can force the deletion of a failed backup using the optional request header as described below.
HTTP method Path

DELETE

/accounts/{account_id}/k8s/v1/managedApps/{managedApp_id}/appBackups/{appBackup_id}

Additional input parameters

In addition to the parameters common with all REST API calls, the following parameters are also used in the curl examples for this step.

Parameter Type Required Description

managed app id

Path

Yes

Identifies the managed application owning the backup.

backup id

Path

Yes

Identifies the backup to be deleted.

force delete

Header

No

Used to force the deletion of a failed backup.

Curl example: Delete a single backup for the app
curl --location -i --request DELETE 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v1/managedApps/<MANAGED_APP_ID>/appBackups/<BACKUP_ID>' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>'
Curl example: Delete a single backup for the app with the force option
curl --location -i --request DELETE 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v1/managedApps/<MANAGED_APP_ID>/appBackups/<BACKUP_ID>' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>' --header 'Force-Delete: true'