Delete Project
DELETE
/v0/projects/{project_id}
curl -s -X DELETE "https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq" \ -H "Authorization: Bearer $YOAGENT_KEY"const response = await fetch("https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.YOAGENT_KEY}`, },});if (!response.ok) throw new Error(await response.text());import os
import requests
response = requests.delete( "https://api.yoagent.dev/v0/projects/prj_01je56wqswfmn9pgbc1wq8tjgq", headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"}, timeout=60,)response.raise_for_status()Delete a project with its subdomain, inboxes, mail and webhooks (an organization keeps one); it leaves every access that named it, and a key left reaching nothing is revoked.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
Responses
Section titled “Responses”Successful Response
default
Section titled “default”An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.