Destroying Direct Messages

Delete a direct message.

Requires Authentication: Yes
Rate Limited: No
Signature:
public async Task<DirectMessage> DestroyDirectMessageAsync(
    ulong id, bool includeEntites)
Parameters/Filters:
Name Purpose Type Required
id ID of direct message to delete ulong yes
includeEntities Include Twitter entities (default: true) bool no


Return Type: DirectMessage
v3.0 Example:
            var message = 
                await twitterCtx.DestroyDirectMessageAsync(
                    243563161037455360ul, true);

            if (message != null)
                Console.WriteLine(
                    "Recipient: {0}, Message: {1}",
                    message.RecipientScreenName,
                    message.Text);
v2.1 Example:
            var message = twitterCtx.DestroyDirectMessage("189178687374110720");

            if (message != null)
            {
                Console.WriteLine(
                    "Recipient: {0}, Message: {1}",
                    message.RecipientScreenName,
                    message.Text);
            }

Twitter API: direct_messages/destroy

Last edited Nov 29, 2013 at 3:22 AM by JoeMayo, version 12