Method: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageContext#delete

Defined in:
lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb

#delete(x_twilio_webhook_enabled: :unset) ⇒ Boolean

Delete the MessageInstance

Parameters:

  • x_twilio_webhook_enabled (ServiceConversationMessageEnumWebhookEnabledType) (defaults to: :unset)

    The X-Twilio-Webhook-Enabled HTTP request header

Returns:

  • (Boolean)

    True if delete succeeds, false otherwise



214
215
216
217
218
219
220
221
222
223
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 214

def delete(
    x_twilio_webhook_enabled: :unset
)

    headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
    
    
    
    @version.delete('DELETE', @uri, headers: headers)
end