Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Prerequisites: Step 2: clarify that FQDN needs to be set + reference step 10 specifically in "Securing Syndeia Cloud"; Run: Step 1: mention what $SC_snapshot_version should be set to.

Overview

A Syndeia repository cannot be deleted using the Syndeia client if it has any children (containers, artifact types, relation types, and container types). In order to delete a repository and all its children recursively, the repository delete command can be used. This action will trigger a cascading delete starting from the repository (R) whose Syndeia key is provided in the command parameters. It will remove

...

(warning) This action is irreversible.

Prerequisites

  1. The user performing the deletion must be super.user

  2. If you have enabled HTTPS only, please ensure you have updated the web-gateway URL to the server FQDN in the lagom.services section of the devops' conf/application.conf file beforehand (see step 10 of Securing Syndeia Cloud for more details)

Deleting Repository

The delete repository (cascade) can only be run from the Syndeia installation server.

Go to the DevOps installation folder

  1. Login to the server where Syndeia Cloud is installed.

  2. Navigate to the folder $SC_HOME/devops-3.56/bin (eg. /opt/icx/syndeia-cloud-current/devops-3.56/bin)

Run the delete repository command

  1. Run the command to start the cascading delete of the repository, where $SC_snapshot_version = the version of SC you are running.

./devops -Dsyndeia.client.action=delete -Dsyndeia.delete.repoKey=<repository sKey> -Dsyndeia.client.username=<username> -Dsyndeia.client.password=<password> -Dconfig.file=/opt/icx/syndeia-cloud-current/devops-$SC_snapshot_version/conf/application.conf

...

password: Password for the username provided.

...

.

...

2. Once the command is run, the Syndeia DevOps client will systematically start deleting the children of the given repository starting from the relations

...

3. On a successful run of the command, the following message will be seen in the console

...

:

Code Block
languagescala
[info] com.intercax.syndeia.api.RepositoryApi(] - Deleting repository with key REPO3
[info] com.intercax.syndeia.delete.CloudDeleteAction[] delete repository action is successful
Info

The repository key of any repository can be retrieved from the Digital Thread Explorer or using the Syndeia Cloud REST APIs

...