Skip to main content

Delete project shows a generic UI error when the project is too recently active

The web app shows a refresh error while the API returns 403 because the project had builds in the last 24 hours. Wait a day after the last real job, then try again.

CircleCI refuses to delete a project that still has recent build activity. In the web app that refusal often looks like a generic failure. The API returns a clear message. Wait until about 24 hours after the last job that actually ran, then delete again.

What you see in the web app

When you choose Delete Project in Project Settings → Overview, the app may show:

An error occurred! Maybe a refresh would help. If that doesn't work, you may want to contact CircleCI support.

Refreshing the page does not fix it. That text is a generic fallback. The web app only surfaces a specific message for some failures (for example permission denied). Other delete failures, including the recent-activity rule, use this same generic string.

What the API returns

The same action calls:

DELETE https://circleci.com/api/v2/project/<project-slug>

When the project is too recently active, the response is 403 with a body like:

{"message":"This project is too recently active to be deleted. Please contact support if you need further assistance."}

You can confirm that in the browser Network tab for the DELETE request, or by calling the Delete a project endpoint with a personal API token.

What counts as recent activity

Deletion is blocked for about 24 hours after either of these:

  • The project’s last finished workflow completed (success or failure)

  • A job on the project started

Pipelines that never run jobs, for example a setup or checkout error such as a missing SSH key that leaves the pipeline in a not-run state, do not reset that timer. Only jobs that actually start, or workflows that complete, do.

What to do

  1. Stop all building on the project, this can be done in various ways, such as removing the checkout key or enabling the "Block all new work from starting for this project" option in Project Settings → Advanced.

  2. Find the time of the last workflow that completed, or the last job that started, on the project.

  3. Wait until more than 24 hours after that time.

  4. Delete again from Project Settings → Overview, or with DELETE /api/v2/project/<project-slug>.

Additional Content

Did this answer your question?