Digital Thread Project Deletion
Overview
A Syndeia Digital Thread Project cannot be deleted using the Syndeia client if it has any children (Relations, Queries & Collections, Baselines, and Permissions). In order to delete a Digital Thread Project and all its children recursively, the Digital Thread Project delete command can be used. This action will trigger a cascading delete starting from the Digital Thread Project whose Syndeia key is provided in the command parameters. It will remove all the below “owned” by that Digital Thread Project:
Relations,
Queries,
Collections,
Baselines, &
Privileges
This action is irreversible.
Prerequisites
The user performing the deletion must be
super.user
andThe user must have the following privileges on the project below:
Digital Thread Project Privileges
READ
RELATION_WRITE
BASELINE_WRITE
QUERY_WRITE
PRIVILEGE_MANAGE
If you have enabled HTTPS only, please ensure you have updated the
web-gateway
URL in thelagom.services
section of the devops'conf/application.conf
file beforehand (see https://intercax.atlassian.net/wiki/spaces/SYN36/pages/3330188953 for more details)
Deleting Digital Thread Project
The delete digital thread (cascade) can only be run from the Syndeia installation server.
Login to the server where Syndeia Cloud is installed.
Navigate to the folder
$SC_HOME/devops-3.6/bin
(eg./opt/icx/syndeia-cloud-current/devops-3.6/bin
)Run the command to start the cascading delete of the repository.
./devops -Dsyndeia.client.action=delete-dtp -Dsyndeia.delete.dtpKey=<digitalthread_project_sKey> -Dsyndeia.client.username=<username> -Dsyndeia.client.password=<password> -Dconfig.file=/opt/icx/syndeia-cloud-current/devops-$SC_snapshot_version/conf/application.conf
… where,
digitalthread_sKey: the Syndeia key (sKey) of the Digital Thread that you want to delete (eg. DT1, DT2, DT3, etc.)
username: Username of the user with appropriate privileges
password: Password for the username provided.
The digital thread key of any project can be retrieved from the Digital Thread Explorer or using the Syndeia Cloud REST APIs
Once the command is run, the Syndeia DevOps client will systematically start deleting the contents of the given Digital Thread Project:
On a successful run of the command, the following message will be seen at the end of execution in the console:
[...] 16:54:42.391 [info] com.intercax.syndeia.api.DigitalThreadApi [] - Deleting digital thread project with key: S2404A 16:54:43.280 [info] com.intercax.syndeia.delete.CloudDTPDeleteAction [] - delete digital thread project action is successful 16:54:43.280 [debug] com.intercax.syndeia.delete.CloudDTPDeleteAction [] - Shutting down SyndeiaCloudDTPDeleteAction client factory. 16:54:43.364 [info] com.intercax.syndeia.cli.SyndeiaCli [] - Action ran successfully (with a return code: 0).