delete_content: Delete a page on Google Sites

Description Usage Arguments Examples

View source: R/wrappers.R

Description

This function takes a title, url, or Id of a page, then deletes it from a Google Sites

Usage

1
delete_content(id, verbose = TRUE)

Arguments

id

A string representing the URL that identifies the entry id of content to delete. This should be an absolute URL looking like: https://sites.google.com/feeds/content/mydomain/mysite/6477233125232797597. You can find this URL by using the find_content function.

verbose

A logical indicating whether to print messages

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# delete a webpage with title My Report
delete_content(id = find_content(value_to_match='My Report',
                                 field_to_match='title')$id)
            
# delete an attachment 
delete_content(id = find_content(value_to_match='rmarkdown-cheatsheet-2.0',
                                 field_to_match='title', 
                                 content_category='attachment')$id)

## End(Not run)

ReportMort/googlesites documentation built on May 6, 2019, 10:12 a.m.