Delete a snapshot
Suggest changes
You can delete a snapshot associated with an application.
Before you begin
You must have the following:
-
ID of the app that owns the snapshot. If needed you can use the workflow List the apps to locate the application.
-
ID of the snapshot you want to delete. If needed you can use the workflow List the snapshots to locate the snapshot.
Delete the snapshot
Perform the following REST API call.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
DELETE |
/accounts/{account_id}/k8s/v1/apps/{app_id}/appSnaps/{appSnap_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 |
---|---|---|---|
app id |
Path |
Yes |
Identifies the managed application owning the snapshot. |
snapshot id |
Path |
Yes |
Identifies the snapshot to be deleted. |
Curl example: Delete a single snapshot for the app
curl --request DELETE \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v1/apps/$APP_ID/appSnaps/<SNAPSHOT_ID>" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"