Users may run into an issue when attempting to delete a federated repository. These attempts can result in the following error via REST API:
{
"errors" : [ {
"status" : 403,
"message" : "Deleting the last local repository is not allowed"
} ]
} And via the UI:
In a situation where there are no local repositories in the Artifactory instance, the deletion of federated repositories would not be possible. In order to be able to delete the federated repository, as a workaround, at least one local repository should be created first. Afterward, the deletion should be successful.