Deletes a namespace.

Note If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.

This topic provides an example on how to delete a namespace named aliyun. The returned result indicates that the namespace is deleted.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteHybridMonitorNamespace

The operation that you want to perform. Set the value to DeleteHybridMonitorNamespace.

Namespace String Yes aliyun

The name of the namespace.

For information about how to obtain the name of a namespace, see DescribeHybridMonitorNamespaceList.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Code String Success

Indicates whether the request was successful.

Message String Namespace.NotFound

The error message.

RequestId String 3843D23A-FB9E-5DC8-BCCC-458768B79296

The ID of the request.

Success String true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "3843D23A-FB9E-5DC8-BCCC-458768B79296",
  "Code" : "Success",
  "Success" : true

Error codes

For a list of error codes, visit the Error Center.