When I delete a project, and try and re-create one with the same name it says it exists

When I delete a project, and try and re-create one with the same name it says:
There was a problem with your request.
A project named ‘ProjectLink’ already exists. Please choose a different name.

Hi Murray,

Thanks for getting in touch! Two things this could be.
The first is that when we delete, we mark it for deletion and create a delete task. If that task doesn’t run it still exists in the database. So please check your tasks to see if there is a timed out deletion task.
The second is your Raven DB indexes could be corrupted or not updated, so repairing Raven DB indexes will be your second thing to check.

Let me know how this goes!
Vanessa

Hi Vanessa,
I just waited long enough and it works :slight_smile:

Cheers.
Murray.

Maybe deleting a project should cause a redirect to the task list. I would never have thought to check there.

Fortunately, this article existed and a quick Google search found the answer before I resorted to creating the project under a confusing name. Thanks for the response above.

I’m having the same issue. The project has been deleted, but when I look in RavenDB, it is still there. At the same time, there is no entry in ServerTasks to delete the project. Therefore, refreshing the index does not get rid of the problem.

What else could we try?

Thanks, Pascal

Hi Pascal,

Thanks for getting in touch! If you are unable to find the delete task, the best way to fix the situation would be to edit the record in Raven so you can see it in the UI and then delete it again. When you delete through the UI we also delete all of a projects dependencies.

So if you bring up the record in Raven (double click on the line in the documents -> Projects list), then click on MetaData - do you see a deleted flag?
If you can compare that record to a non-deleted record, then edit to match. This should bring the project back so you can delete it from the UI.

Let me know how you get on.
Vanessa

Hi Vanessa,

Hmmm… interestingly enough, there is no "delete flag"set on that project record. Attached are the two screenschots of this record of its data and metadata.

So despite that the project is not set as “deleted”, it doesn’t show up in the OD web interface. What else could I try to do to get this project deleted?

Thanks, Pascal

Hi Pascal,

Is it at all possible the project is hidden from you due to permissions? Is your account an admin account?

Vanessa

Hi Vanessa,

I’m a full-on admin… I’ve set the whole system up myself, so that couldn’t be the problem…

Pascal

I “fixed” it! Strangely enough, when I changed the project name in the database from “ADBCM” to “ADBCM1”, the project all of a sudden showed up in the UI. This allowed me to delete it from the UI and everything went fine from there. Weird, if you ask me…

Thanks,

Pascal

Hi Pascal,

Hopefully these lovely little anomalies will go away when 3.0 is released. Glad you were able to resolve it!

Vanessa

Hi Vanessa,

Yes, that would be nice. Speaking of which: what is the planned release date for version 3.0?

Thanks, Pascal.

Hi Pascal,

See our blog :slight_smile: http://octopusdeploy.com/blog

Vanessa