Message Media

Delete Message Media

Deletes one MMS attachment from a message. Media cannot be deleted while the parent message is in initiated or queued status. This removes the attachment without deleting the message itself.

Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging.

Learn more about API scopes.

delete/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}

Path parameters

AccountSidstring uuid required

Universal Unique Identifier.

The unique identifier of the project that sent or received this message.

MessageSidstring uuid required

Universal Unique Identifier.

A unique ID that identifies this specific message.

Sidstring uuid required

Universal Unique Identifier.

A unique ID that identifies this specific message.

Response

204 No Content response.

Changes

Changed in 5 of the 40 revisions of this API.310

    • added 'unevaluatedProperties' constraint to the response body for the status 400

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 401

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 404

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status 422

      response-body-unevaluated-properties-added

    • api tag Message Media added

      api-tag-added

    • api tag Media removed

      api-tag-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 422

      response-non-success-status-added

    This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 3c88f14db21e32See the full diff
    • added the new path request parameter AccountSid

      new-request-path-parameter

    • added the new path request parameter MessageSid

      new-request-path-parameter

    • added the new path request parameter Sid

      new-request-path-parameter

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog