powered by
This function can be used to delete a post.
ig_delete_media(media_id, verbose = FALSE)
numeric; the unique id to identify a post which can be found in the id, not the pk field, of posts returned via many of the functions retrieving feeds.
id
pk
logical; do you want informative messages?
# NOT RUN { last_post_media_id <- ig_my_timeline(paginate = FALSE)$id[1] deletion_result <- ig_delete_media(last_post_media_id) # }
Run the code above in your browser using DataLab