Skip to contents

Permanently deletes files or folders, moving them to the trash first if needed. This can't be undone. This is the analogue of googledrive::drive_rm(). Use pd_trash() for a reversible alternative.

Usage

pd_rm(file, verbose = TRUE)

Arguments

file

Files or folders, as paths, IDs marked with as_id(), or a dribble. For pd_untrash(), typically a dribble from pd_ls("/trash") or from pd_trash().

verbose

If TRUE, report what happened.

Value

A dribble of the deleted items, invisibly.

Examples

if (FALSE) { # \dontrun{
pd_rm("data/scratch.csv")
} # }