6.3. Removing a Repository
Repositories can be removed using any of the following procedures.
Removing a Repository from Business Central
The simplest way to remove a repository is using the Business Central RepositoryEditor.
Procedure 6.3. Using Business Central to Remove a Repository
- Access the RepositoryEditor in Business Central Authoring → Administration.
- Select Repositories from the tree menu on the left.
- In the RepositoryEditor on the right, locate the repository to be deleted from the list of available repositories.
- Select master from the drop-down menu, and click the Delete button.
- The following message will appear:
Are you sure you want to remove Repository "<$RepositoryName>"? Some editors may become inoperable if their content is inaccessible.
Press Ok to delete.
Removing a Repository using the kie-config-cli Tool
Repositories can be removed using the
kie-config-cli
tool via the remove-repo
command.
For more information about the
kie-config-cli
tool, see Chapter 3, Command line configuration.
Removing a Repository using the REST API
To remove a repository from the Knowledge Store, issue the
DELETE
REST API call. This call relies on the user having created an authenticated HTTP session before issuing this command.
Example 6.1. Removing a repository using curl
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X DELETE 'localhost:8080/business-central/rest/repositories/REPOSITORY_NAME'