The CLI dbcleanup command
The Sitecore CLI Database Cleanup plugin performs database cleanup according to the provided tasks.
Usage
The dbcleanup
command requires elevated permissions.
You can use the dbcleanup
command as follows:
sitecore dbcleanup [options]
Options
The dbcleanup
command has the following options:
Option |
Description |
---|---|
|
Comma-separated list of databases targeted for cleanup tasks. |
|
Clean up fields. Deletes data from shared, unversioned, and versioned fields that have no related items. |
|
Clean up orphaned fields. Cleans the field data from the orphans removed in items with no parent. |
|
Clean up blobs. Deletes blob fields that have no related field. |
|
Path to root sitecore.config directory. Default: current working directory. |
|
Named Sitecore environment to use. Default: "default". |
|
Write some additional diagnostic and performance data. |
|
Write more additional diagnostic and performance data. |
|
Display developer help and usage information about the command. |
Examples
The following are examples of using the dbcleanup
subcommand:
Command |
Result |
---|---|
|
Performed all cleanup tasks on all databases. RequestResponse
|
|
Performed the clean-blobs task for Web and Master databases. RequestResponse
|