Deletes a status of user's profile.
Arguments
- destroy_id
To delete a status, supply the single status ID here. If a character string is supplied, overriding the default (NULL), then a destroy request is made (and the status text and media attachments) are irrelevant.
- token
Expert use only. Use this to override authentication for a single API call. In most cases you are better off changing the default for all calls. See
auth_as()
for details.
Examples
if (auth_has_default()) {
pt <- post_tweet("Running #rtweet examples")
post_destroy(ids(pt))
}