Learn R Programming

imguR (version 1.0.3)

delete_image: Delete image

Description

Delete an image

Usage

delete_image(id, ...)

Arguments

id
An image ID or object of class “imgur_image”. If no token is supplied, id must be a deletehash from the original upload_image response.
...
Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token) or key (an API key, used by default).

Value

“imgur_basic”.

Details

Deletes an image.

See Also

upload_image

update_image

Examples

Run this code
## Not run: 
# # using a deletehash, anonymously
# u <- upload_image('file.png')
# delete_image(u$deletehash)
# 
# # using an OAuth token
# tkn <- imgur_login()
# u <- upload_image('file.png', token = tkn)
# delete_image(u, token = tkn)
# ## End(Not run)

Run the code above in your browser using DataLab