How to delete a project key

VickeyC
Level 3
How to delete a project key

I'm trying to import a project that has been previously deleted, but I'm unable to because the project key still exists. How do I delete the project key?


Operating system used: RHEL 7.9

0 Kudos
1 Reply
ZachM
Dataiker

Hi @VickeyC,

Normally when a project is deleted, the key can be reused. Are you sure that the project has actually been deleted?

If you're not a DSS administrator, you can only see projects that you have access to. In this case, please check with an administrator to verify if the project exists.

It's also possible that there's an existing project that is using the key, but has a different display name. You can run the following code in a Python notebook to list all existing projects and show their keys & names. The notebook must be created by a DSS administrator; otherwise it will only list projects that you have access to.

import dataiku

client = dataiku.api_client()

for project in client.list_projects():
    print("Key:", project["projectKey"])
    print("Display name:", project["name"])
    print("")

Thanks,

Zach

0 Kudos