R/delete_file_or_folder.R

Defines functions delete_file_or_folder

Documented in delete_file_or_folder

# delete_file_or_folder --------------------------------------------------------

#' Delete a File or Folder on the Cloud
#'
#' @param path path to the file or folder to be deleted
#' @param \dots further arguments passed to
#'   \code{kwb.nextcloud:::nextcloud_request}
#' @inheritParams list_files
#' @export
#'
delete_file_or_folder <- function(
  path, user = nextcloud_user(), auth = nextcloud_auth(), ...
)
{
  href <- path_to_file_href(path, user = user)

  response <- nextcloud_request(href, "DELETE", auth = auth, ...)
}
KWB-R/kwb.nextcloud documentation built on Oct. 16, 2024, 11:18 p.m.