Deletes a namespace.
Operation description
Deleting a namespace also deletes all repositories and images within it.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:DeleteNamespace |
delete |
*Namespace
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-xkx6vujuhay0**** |
| NamespaceName |
string |
Yes |
The name of the namespace. |
ns3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The ID of the request. |
BA08C185-8F76-48D7-ACB3-BA11BF2778F9 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "BA08C185-8F76-48D7-ACB3-BA11BF2778F9"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.