repo_rm {repo} | R Documentation |
Remove item from the repo (and the disk).
Description
Remove item from the repo (and the disk).
Usage
repo_rm(name = NULL, tags = NULL, force = F)
Arguments
name |
An item's name. |
tags |
A list of tags: all items matching the list will be removed. |
force |
Don't ask for confirmation. |
Value
Used for side effects.
Examples
rp_path <- file.path(tempdir(), "example_repo")
rp <- repo_open(rp_path, TRUE)
rp$put(1, "item1", "Sample item 1", "info")
rp$put(2, "item2", "Sample item 2", "info")
print(rp)
rp$rm("item1")
print(rp)
## wiping temporary repo
unlink(rp_path, TRUE)
[Package repo version 2.1.5 Index]