Delete Project#
You can delete a project through the NeMo Entity Store microservice.
Warning
Deleting a project does not delete the entities associated with the project.
Prerequisites#
Before you can delete a project, make sure that you have:
Obtained the base URL of your NeMo Entity Store Microservice.
Permissions to access the NeMo Entity Store microservice endpoint.
Obtained the
namespace
andproject_name
of the project you want to delete.
To Delete a Project#
Choose one of the following options of deleting a project.
Set up a NeMoMicroservices
client instance using the base URL of the NeMo Entity Store microservice and perform the task as follows.
from nemo_microservices import NeMoMicroservices
client = NeMoMicroservices(
base_url=os.environ["ENTITY_STORE_BASE_URL"]
)
response = client.projects.delete(
namespace="your-namespace", # Namespace that you create using NeMo Entity Store
project_name="your-project-name",
)
print(response)
Make a DELETE request to the /v1/projects/{namespace}/{project_name}
endpoint.
export ENTITY_STORE_BASE_URL=<URL for NeMo Entity Store>
export NAMESPACE="your-namespace" # Namespace that you create using NeMo Entity Store
export PROJECT_NAME="your-project-name"
curl -X DELETE "${ENTITY_STORE_BASE_URL}/v1/projects/${NAMESPACE}/${PROJECT_NAME}" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' | jq
Example Response
{
"message": "Resource deleted successfully.",
"id": "project-RM4tayGfUwA1aqu5NfTDA1",
"deleted_at": null
}