sidebar | permalink | keywords | summary |
---|---|---|---|
sidebar |
workflows/wf_delete_backup.html |
You can delete a backup associated with an application. |
You can delete a backup associated with an application.
You must have the following:
-
ID of the app that owns the backup. If needed you can use the workflow List the 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.
Perform the following REST API call.
Note
|
You can force the deletion of a failed backup using the optional request header as described below. |
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
DELETE |
/accounts/{account_id}/k8s/v1/apps/{app_id}/appBackups/{appBackup_id} |
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 |
---|---|---|---|
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 --request DELETE \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v1/apps/$APP_ID/appBackups/<BACKUP_ID>" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
curl --request DELETE \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v1/apps/$APP_ID/appBackups/<BACKUP_ID>" \
--include \
--header "Force-Delete: true" \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"