All Products
Search
Document Center

Resource Management:DeleteMessageContact

Last Updated:Jun 25, 2024

Deletes a contact.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ContactIdstringYes

The ID of the contact.

c-qL4HqKONzOM7****
RetainContactInMembersbooleanNo

Specifies whether to retain the contact for members. Valid values:

  • true (default): retains the contact for members. In this case, the contact can still receive messages for the members.
  • false: does not retain the contact for members. In this case, the contact can no longer receive messages for the members. If you set this parameter to false, the response is asynchronously returned. You can call GetMessageContactDeletionStatus to obtain the deletion result.
true

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

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

The deletion status of the contact. Valid values:

  • Deleting
  • Deleted
Deleting

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.ContactIdThe ContactId is invalid.The value of the ContactId parameter is invalid.
400MissingParameter.ContactIdYou must specify ContactId.The ContactId parameter is not configured.
404EntityNotExists.ContactThis Contact does not exist.The specified contact does not exist.
429ConcurrentCallNotSupportedThe operation conflicts with other operations. Please try again later.The operation conflicts with other operations. Try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-11The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 429