Remove a project from kwxsync storage
If you need to remove a project from kwxsync storage, you can use the kwxsync delete-project utility.
kwxsyncutil delete-project --storage <storage_path> --url <project_URL>
Specify the path to the storage file and the URL of the project you want to remove from storage. If the project is already deleted and the URL doesn't exist in the storage, an error is reported. This command works on the storage file independently, meaning that there is no communication required with any servers.
The project URL has the following format: http(s)://<klocwork_server_host>:<klocwork_server_port>/<project>
Use https:// if a secure Klocwork Server connection has been configured.
kwxsyncutil delete-project --storage /opt/klocwork/storage/storage.dat --url http://localhost:8080/my_project
In this example, 'my_project' is deleted from the project database, the file map database and from the citing history of every defect in storage.
Generate a list of projects
If you need to generate the list of projects contained in a kwxsync storage file, you can run the following command:
kwxsyncutil list-projects --storage <storage_path>