Manage

How to create & delete Records.

Create Record

db.create('tag', content, options)
Parameter
About
Type
Required

tag

The new Record's tag

String

content

The Record's content

Any

options

writeFile options

String || Object

Delete Record

db.get('tag').delete()

Trash

If you set trash, Records will not be deleted, but rather moved to your trash.

Delete All from Trash

db.emptyTrash()

Delete from Trash

db.deleteFromTrash('tag')
Parameter
About
Type

tag

Tag of the trashed record

String

Close

Delete all records & the directory

Wipe

Delete all records & preserve the directory

Delete Old Records

Requires at least one of the options below (multiple options will stack)

Parameter
About
Type

ms

Milliseconds

Number

seconds

Seconds

Number

minutes

Minutes

Number

hour

Hours

Number

days

Days

Number

Delete Large Records

Parameter
About
Type

size

Size of the file in bytes

Number

Last updated