The CLI dbcleanup command
The Sitecore CLI Database Cleanup plugin performs database cleanup according to the provided tasks.
Usage
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 fields - shared fields, unversioned fields, versioned fields - that have no related items. |
|
Clean up orphaned fields. Cleans the field data from the orphans removed in items that have 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. RequestResponseshell
|
|
Performed the clean-blobs task for Web and Master databases. RequestResponseshell
|