Delete all your sent DM’s in Twitter in single shot
I have given you the script to delete all your sent direct messages in Twitter at single shot. If you don’t understand what’s happening with the below code, refer my previous post about tweepy. If you are a one time user to get things done and don’t want to understand the script, copy and execute the script. Get things done.
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_TOKEN)
client = tweepy.API(auth)
for page in tweepy.Cursor(client.sent_direct_messages, count=100).pages():
for dm in page: