此内容没有您所选择的语言版本。
7.4. Removing a Repository
Repositories can be removed using any of the following procedures.
Removing a Repository in Business Central
The simplest way to remove a repository is using the RepositoryEditor in Business Central.
Procedure: Using Business Central to Remove a Repository
-
In Business Central, go to Authoring
Administration. - Select Repositories from the tree menu on the left.
- In the RepositoryEditor on the right side of the page, locate the repository you want to delete from the list of available repositories.
From the drop-down menu, select master
Delete. The following message will appear:
Are you sure you want to remove Repository "REPOSITORY_NAME"? Some editors may become inoperable if their content is inaccessible.
Are you sure you want to remove Repository "REPOSITORY_NAME"? Some editors may become inoperable if their content is inaccessible.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press OK to delete the repository.
Removing a Repository Using the kie-config-cli Tool
Repositories can be removed using the kie-config-cli
tool as well. To do so, run the remove-repo
command.
For further information about the kie-config-cli
tool, see Chapter 4, Command Line Configuration.
Removing a Repository Using the REST API
Note that only users with the rest-all
role can remove repositories.
To remove a repository from the Knowledge Store, issue the DELETE
REST API call. Make sure you established an authenticated HTTP session before executing this call.
The call returns a RemoveRepositoryRequest
instance.
Example 7.4. Removing a Repository Using the Curl Utility
Execute the following command:
curl -X DELETE 'localhost:8080/business-central/rest/repositories/REPOSITORY_NAME' -u USERNAME:PASSWORD -H 'Accept: application/json' -H 'Content-Type: application/json'
curl -X DELETE 'localhost:8080/business-central/rest/repositories/REPOSITORY_NAME' -u USERNAME:PASSWORD -H 'Accept: application/json' -H 'Content-Type: application/json'
For further information, refer to chapter Knowledge Store REST API, section Repository Calls of Red Hat JBoss BPM Suite Development Guide.