> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CompactProject

> Use the CompactProject FCAdminTools command to clean up file storage by deleting unused Document Definitions and related files from ABBYY FlexiCapture projects.

When you publish a new version of a Document Definition, its earlier versions are not deleted automatically, as they may still be in use by some documents in the project. Over time, old and unused Document Definitions will accumulate, as their documents are deleted or newer Document Definitions are developed. You can use the `CompactProject` command to clean up your file storage space and delete any unused files.

* For a local project, running the `CompactProject` command has the same effect as clicking **Project → Compact**.
* For a project stored on a server, running the `CompactProject` command will delete any unused Document Definitions and their related files, both from the working and from the training batches.

<Note>
  The latest versions of Document Definitions are never deleted.
</Note>

## Parameters

| Parameter  | Type     | Description                                                                                                                                                                                                                                                                  |
| :--------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/Project` | Optional | Specifies a project. You can specify the full path to a local project, the path to a project on a server, or the name of a project on a server (the `/Server` parameter must be specified). If no project is specified, the command compacts all the projects on the server. |
| `/Server`  | Optional | Server address.                                                                                                                                                                                                                                                              |
| `/U`       | Optional | User name. If no user name is specified, Windows authentication is used.                                                                                                                                                                                                     |
| `/P`       | Optional | Password.                                                                                                                                                                                                                                                                    |
| `/Tenant`  | Optional | Tenant name.                                                                                                                                                                                                                                                                 |
| `/Cert`    | Optional | Certificate thumbprint used for mutual SSL authentication. This key is used to pass an encoded certificate hash for a server with Mutual SSL installed as a string.                                                                                                          |

## Example of use

* `CompactProject /Project="https://FCSRV/1/SingleEntryPoint" /U=user /P=password`
