Delete a snapshot
/api/20210901/snapshots/{snapshotId}
Request
-
snapshotId(required): string
Snapshot id.
-
deleteStorage: boolean
When set to true, the snapshot is deregistered and the snapshot BAR file is deleted from storage (for example, Oracle Cloud Infrastructure (OCI) storage). When set to false, the BAR file is deregistered but the BAR file remains in storage.Default Value:
false
There's no request body for this operation.
Back to TopResponse
200 Response
400 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
404 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
These examples show you how to delete snapshots associated with an Oracle Analytics instance.
- Example 1 - Deregister a snapshot
- Example 2 - Deregister a snapshot and delete from storage
Example 1 Deregister a snapshot
ac6fdab7-9c16-4d22-a56f-cb7b5d15505a
. You can use Get all
snapshots to find the snapshot ID.
Note:
By default, the BAR file associated with the snapshot remains
available in cloud storage (deleteStorage=false
).
cURL Example:
curl -i \ --header 'Authorization: Bearer <token>' \ --request DELETE 'https://<hostname>/api/20210901/snapshots/ac6fdab7-9c16-4d22-a56f-cb7b5d15505a'
Example of Request Body
Not applicable.
Example of Response Body
Not applicable.
Example 2 Deregister a snapshot and delete from storage
In this example, you deregister a snapshot that's associated with your
Oracle Analytics instance and delete the snapshot from Oracle Cloud Infrastructure
Object Storage. The ID of the snapshot is
ac6fdab7-9c16-4d22-a56f-cb7b5d15505a
. You can use Get all
snapshots to find the snapshot ID.
cURL Example:
curl -i \ --header 'Authorization: Bearer <token>' \ --request DELETE 'https://<hostname>/api/20210901/snapshots/ac6fdab7-9c16-4d22-a56f-cb7b5d15505a?deleteStorage=true'
Example of Request Body
Not applicable.
Example of Response Body
Not applicable.