delete_comment: delete a comment on a Google Drive file

Description Usage Arguments Value See Also Examples

View source: R/comments.R

Description

delete_comment, when provided with an authentication token, a file ID and a comment ID, will let you delete a comment automatically. It's worth noting that this will /also/ junk any replies to the initial comment.

Usage

1
delete_comment(file_id, comment_id, ...)

Arguments

file_id

the ID of a file - or the full URL for accessing it via your browser. See file_metadata for further discussion.

comment_id

the ID of a comment, which can be easily retrieved with list_comments

...

further arguments to pass to httr's DELETE

Value

TRUE if the comment was successfully deleted, FALSE otherwise.

See Also

list_comments to retrieve comment metadata (including the comment IDs) for a file.

Examples

1
2
3
4
5
6
## Not run: 
#Grab a list of comments in a file and delete the first one
comments <- list_comments(file_id = "f38rggruFKJad30")
delete_comment("f38rggruFKJad30", comments$items[[1]]$id)

## End(Not run)

noamross/driver documentation built on May 23, 2019, 9:30 p.m.