CompactProject

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.

Parameters

/Project

Optional

Specifies a project.

You can specify any of the following:

  • the full path to a local project
  • the path to a project on a server
  • the name of a project on a server (the /Server parameter must be specified)

If no project is specified, the command will compact all the projects on the server.

/Server Optional Server address.
/U Optional User name.

If no user name is specified, Windows authentication will be 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:

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

12.04.2024 18:16:01

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.