Search

Delete Message

Last Updated: Nov 4, 2020

Articles

Use this function to delete the given message record in the twilio website.

Syntax

Delete Message (token, account_sid, message_id)

Parameters

Input Parameter Name Description
token Used for authentication
account_sid Used for authentication
message_id ID of the message to delete

Returns

Return Value Description
Output
  • On Success: 1, Message Deleted Successfully
  • On Failure: 0, Error Message

Sample

Delete Message (ABCDCEF, NC-45, DD-23)

  • Uses the token ‘ABCDCEF’ and the account_sid ‘NC-45’ to authenticate the connection to the Twilio application, deletes the message with ID ‘DD-23’.
    Returns ‘Message Deleted Successfully’ on deleting the message.

To view all the Twilio functions, click here.

Did you find what you were looking for?