Learn R Programming

rtweet (version 1.2.1)

tweet_delete: 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

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

Run the code above in your browser using DataLab