All Products
Search
Document Center

Resource Management:DeleteMessageContact

Last Updated:Aug 28, 2026

Deletes a contact.

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 parameters

Parameter

Type

Required

Description

Example

ContactId

string

Yes

The ID of the contact.

c-qL4HqKONzOM7****

RetainContactInMembers

boolean

No

Whether to retain the contact for members. Valid values:

  • true (default): retains the contact for members. The contact can still receive messages for the members.

  • false: does not retain the contact for members. The contact can no longer receive messages for the members. The response is returned asynchronously. You can call GetMessageContactDeletionStatus to obtain the deletion result.

true

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

9B34724D-54B0-4A51-B34D-4512372FE1BE

Status

string

The deletion status of the contact. Valid values:

  • Deleting

  • Deleted

Deleting

Examples

Success response

JSON format

{
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "Status": "Deleting"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.ContactId The ContactId is invalid.
400 MissingParameter.ContactId You must specify ContactId.
404 EntityNotExists.Contact This Contact does not exist.
429 ConcurrentCallNotSupported The operation conflicts with other operations. Please try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.