---
title: "Delete a project for a workspace"
method: DELETE
path: "/workspaces/{workspace}/projects/{project_key}"
tags: ["Projects"]
---

# Delete a project for a workspace

`DELETE /workspaces/{workspace}/projects/{project_key}`

Deletes this project. This is an irreversible operation.

You cannot delete a project that still contains repositories.
To delete the project, [delete](/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-delete)
or transfer the repositories first.

Example:
```
$ curl -X DELETE https://api.bitbucket.org/2.0/workspaces/bbworkspace1/projects/PROJ
```

## Response `204`

Successful deletion.

## Other responses

- `403` — The requesting user isn't authorized to delete the project or the project isn't empty.
- `404` — A project isn't hosted at this location.

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/4ec8bd2515c5/schema)
