LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Department Boxes
  • Overview
  • Adding an Item
  • Cleaning
  • Exporting
  • Removing a Row
  • Removing an Item
  • Retrieving an Item
Powered by GitBook
On this page
  • Clean All Items
  • Clean Items Before a Certain Date

Was this helpful?

Export as PDF

Cleaning

These procedures remove items from a department box.

You can remove items from a department box using the clean keyword.

Clean All Items

To delete all items from a department box, use clean followed by the department box name. For example:

HR is a department box
the department box's engine is "s3"
clean HR

Clean Items Before a Certain Date

To delete only items older than a specific date or time, use clean with before and specify either a relative or absolute date.

Relative Date

A relative date is based on the current time. For example, this removes all items from the department box that are older than 3 hours:

HR is a department box
the department box's engine is "s3"
clean HR before '3 hours'

Absolute Date

An absolute date is a fixed point in time. The following removes all items from the department box that were added before October 23, 2020:

HR is a department box
the department box's engine is "s3"
clean HR before '23rd Oct 2020'

Last updated 1 month ago

Was this helpful?