tweet_delete: Delete tweet

View source: R/statuses.R

tweet_deleteR Documentation

Delete tweet

Description

Will delete a tweet

Usage

tweet_delete(id, verbose = FALSE, token = NULL)

Arguments

id

At least a tweet id.

verbose

A logical value to provide more information about the paginated queries (if any) and to store the data of each page.

token

This endpoint accepts a OAuth2.0 authentication (can be created via rtweet_oauth2()) or a bearer token (can be created via rtweet_app()).

References

https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/delete-tweets-id

See Also

tweet_post(), tweet_search_recent(), user_timeline()

Examples

if (FALSE) {
  # It requires Oauth authentication
  tp <- tweet_post("Running examples of #rtweet")
  td <- tweet_delete(tp$id)
}


rtweet documentation built on Oct. 17, 2023, 1:11 a.m.