---
title: "Delete your project template"
method: DELETE
path: "/v1/project-templates/environment"
tags: ["Agent environments"]
---

# Delete your project template

`DELETE /v1/project-templates/environment`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/project-templates/environment`
- Auth: HTTP bearer

Deletes the project template of this repository: its saved versions, binding and setup state. It is no longer rebuilt on machine changes or platform releases; new conversations start from your machine until setup or a save makes a fresh template. VMs running on it keep their files. Builds still running for it are stopped. 404 `not_found` (filesystem_not_found) when nothing is saved. Refused (403) with an agent VM's own token: delete from your laptop key or account.

## Query parameters

- `project_id` string, uuid
- `repo_remote` string

## Response `200`

Default Response

- object
  - `level` 'template', required
  - `organization_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `project_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `repo_remote` string, required
  - `deleted` true, required
  - `template` object
    - `slug` string, required
    - `versions` integer, required: Saved versions the delete removed.
  - `canceled_builds` integer, required: Saves and platform updates of this template that were still building and were stopped.

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
