# Clear Doclib

Removes all files and folders from a document library by processing rows from an Excel file.

Filename pattern: filename must contain cleardoclib (case-insensitive).
Example: 20240115 cleardoclib reset.xlsx

# Columns

Name Required Description
Url Conditional Server-relative URL of the document library. Required when MatterCode is not provided.
MatterCode Conditional Matter code used to resolve the document library from the matter list. Required when Url is not provided.
ClientCode No Client code used together with MatterCode to identify the matter.
RecycleBin / Recycle No Boolean. true sends cleared items to the recycle bin instead of permanently deleting them. Defaults to false.

Either Url or MatterCode must be provided.

# Behavior

The handler removes the root folder of the document library, effectively deleting all its contents. When using MatterCode targeting and the matter has more than one document library, the row fails with an error — use Url directly in that case.

Last Updated: 4/20/2026, 12:54:05 PM