DeleteContextModelElement

Updated at:

Deletes a single element.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

DELETE /context-models/{name}/elements/{domain}/{kind}/{elementName} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

name

string

No

The identifier of the context model to which the element belongs. It is obtained from the first segment of the request path /context-models/{name}/elements/{domain}/{kind}/{elementName}. If the model does not exist, a 404 error is returned.

orders

domain

string

No

The domain of the element. This parameter, together with kind and elementName, uniquely identifies the element to be deleted. For elements automatically generated by Simple Log Service, the domain is usually sls.

sls

kind

string

No

The type of the element. Only uppercase and lowercase letters, digits, and underscores are supported. Hyphens are not supported. Examples include log_set, metric_set, runbook_set, event_set, sls_logstore, and storage_link.

log_set

elementName

string

No

The name of the element itself, which corresponds to the metadata.name of the element and is distinct from the model name. Uppercase and lowercase letters, digits, and the . _ - : @ characters are supported. Examples include orders_log and st.myproj.orders-ls.

orders_log

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The response body.

status

string

The status of the operation. The value success is returned when the deletion is successful. Deleting a non-existent element also returns success.

success

Examples

Success response

JSON format

{
  "status": "success"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.