Caution: this will permanently delete your files! For a safer, reversible
option, see drive_trash().
drive_rm(..., verbose = TRUE)
| ... | One or more Drive files, specified in any valid way, i.e. as a
|
|---|---|
| verbose | Logical, indicating whether to print informative messages
(default |
Logical vector, indicating whether the delete succeeded.
Wraps the files.delete endpoint:
# NOT RUN { ## Create something to remove drive_upload(drive_example("chicken.txt"), name = "chicken-rm.txt") ## Remove it by name drive_rm("chicken-rm.txt") ## Create several things to remove x1 <- drive_upload(drive_example("chicken.txt"), name = "chicken-abc.txt") drive_upload(drive_example("chicken.txt"), name = "chicken-def.txt") x2 <- drive_upload(drive_example("chicken.txt"), name = "chicken-ghi.txt") ## Remove them all at once, specified in different ways drive_rm(x1, "chicken-def.txt", as_id(x2)) # }