I specifically joined the community to get an answer I have 22K tweets and want to delete most of my older tweets (2 years or more old) Manual deletion is a bear. I am using a self written piece of code (with api.destroy.status) and it worked fine on a test account. But now when I try it in my own account it is failing.
Some additional details which may help identify the issue quickly -
- I am using a csv file based on my archive data and using the tweet ids in there to destroy.
- I split the archive file in chunks of 500 tweets
- I tested my code on a test account and it worked like a charm (~150 tweets)
- I deleted the app on the test account and installed on my personal account 1st. I also deleted the app and reinstalled with a new name and tried it on my user account. Both failed. I wasn’t capturing the error code from the API. I probably should do this.
- If I was hitting rate limits won’t it give a more explicit message or (and I know I should do this) is it best that I catch the status of the destroy call or alternately use the get rate limit method?
- I am forcing it to authenticate 1st by not supplying the verify code up front.
- I tried to look up a sample tweet which failed to delete , manually, and it worked and I could delete it manually.
8… None of the tweets I am attempting to delete show up on my timeline anymore - even though they do on my archive - since I have more than 3000 tweets since those.
9 I am pretty handy with coding and python but don’t normally do dev stuff nor on twitter data lately.