ARTIFACTORY: How to delete a JFrog project when resources(repositories) are assigned to it

Amith Kumar Mutakari
2021-10-14 14:06

In this article, we will learn how to unassign the repositories from a JFrog Project and delete the project.

Platform Admins can delete a project that does not contain any assigned or available resources.
To delete a project,  we need to follow the below steps:

  1. Make sure all the repositories specific to the project are reassigned to another project or unassign the project from a repository
  2. Delete the project from Artifactory UI or via this REST API call

If you choose to unassign the repositories from a project, then use the following steps:

 

1)  How to unassign the repository from a project:

We need to run the following REST API to unassign the repository from a project:

$ curl –location –request DELETE https://testart.jfrog.io/access/api/v1/projects/_/attach/repositories/test-repo

–header 'Authorization: Bearer <valid token>' -vvv

2) We need to make sure no repositories are part of the project and then delete the project from Artifactory UI or REST API.