Delete Namespace#
You can delete a namespace if you no longer need it through the NeMo Entity Store microservice.
Warning
Deleting a namespace does not delete the entities associated with the namespace.
Prerequisites#
Before you can delete a namespace, make sure that you have:
Obtained the base URL of the NeMo Entity Store microservice.
Permissions to access the NeMo Entity Store microservice endpoint.
Obtained the
idof the namespace you want to delete.
To Delete a Namespace#
Choose one of the following options of deleting a namespace.
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.namespaces.delete(
namespace_id="your-namespace", # Namespace that you create using NeMo Entity Store
)
print(response)
Make a DELETE request to the /v1/namespaces/{id} endpoint. The following example deletes the team-docs namespace.
export ENTITY_STORE_BASE_URL=<URL for NeMo Entity Store>
export NAMESPACE_ID="team-docs"
curl -X DELETE "${ENTITY_STORE_BASE_URL}/v1/namespaces/${NAMESPACE_ID}" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' | jq
Example Response
{
"message": "Resource deleted successfully.",
"id": "your-namespace",
"deleted_at": "2025-02-12T19:10:57.932488"
}