Delete an iSCSI service
Deletes an iSCSI service when it is no longer needed or must be removed from the configuration. Ensure the service is disabled before proceeding with deletion.
HTTP method and endpoint
DELETE /protocols/san/iscsi/services/{svm.uuid}
Introduced in
ONTAP 9.6
Usage notes
An iSCSI service must be disabled before it can be deleted.
Related ONTAP commands
-
vserver iscsi delete
Learn more
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
svm.uuid |
string |
path |
True |
The unique identifier of the SVM for which to delete the iSCSI service. |
Response
Status: 200, Ok
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
2621462 |
An SVM with the specified UUID does not exist. |
5373960 |
The iSCSI service is enabled. The iSCSI service must be disabled before it can be deleted. |
5374078 |
The SVM does not have an iSCSI service. |
Also see the table of common errors in the Response body overview section of this documentation.
| 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 |
returned_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. |