ARTIFACTORY: How to overcome the "Deleting the last local repository is not allowed" error

ARTIFACTORY: How to overcome the "Deleting the last local repository is not allowed" error

AuthorFullName__c
Elina Floim
articleNumber
000005728
FirstPublishedDate
2023-05-18T12:36:33Z
lastModifiedDate
2025-07-20
VersionNumber
1

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:

User-added image

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.