Delete a Snapshot copy policy
Removes a Snapshot copy policy, eliminating it from the storage system configuration. Use this endpoint to manage and organize your Snapshot policies effectively, ensuring your storage environment remains optimized.
HTTP method and endpoint
DELETE /storage/snapshot-policies/{uuid}
Introduced in
ONTAP 9.6
Usage notes
Deletes a Snapshot copy policy
Related ONTAP commands
-
snapshot policy delete
Learn more
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
uuid |
string |
path |
True |
Snapshot copy policy UUID |
Response
Status: 200, Ok
Error
Status: Default
ONTAP Error Response Code
| Error Code | Description |
|---|---|
1638415 |
Cannot delete policy. Reason: Policy is in use by at least one volume. |
1638416 |
Cannot delete policy. Reason: Cannot verify whether policy is in use. |
1638430 |
Cannot delete policy. Reason: Policy is in use by at least one Vserver. |
1638430 |
Cannot delete built-in policy. |
| Name | Type | Description |
|---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
error_arguments
| Name | Type | Description |
|---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
| Name | Type | Description |
|---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |