delete: Deleta a Value or Directory from an Object Store

Description Usage Arguments Value See Also Examples

Description

Delete the value or directory corresponding to the specified key from the object store service connection con.

Usage

1
delete(con, key)

Arguments

con

An object store connection from register_service.

key

A key name, optionally including a / separated directory path

Value

NULL is invisibly returned, or an error may be thrown.

See Also

register_service cache uncache

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Start an example local mongoose backend server
mongoose_start()
con <- register_service()
# Cache the 'iris' dataset in a directory named 'mydata':
cache(con, iris, "mydata/iris")
# Retrieve it from the cache into a new variable called 'x'
x <- uncache(con, "mydata/iris")
# Delete the entire 'mydata' directory
delete(con, "mydata")
mongoose_stop()

bwlewis/feathercache documentation built on May 13, 2019, 9:06 a.m.