Delete a project
Permanently delete (soft-delete) an existing project using an API key.
Deleting a project removes access to all associated resources, including:
project domains
licenses
injectables
This action is irreversible from the API. Deleted projects cannot be restored.
Endpoint
DELETE /project/{project}
Full URL:
https://api.devpayr.dev/api/v1/project/{project}Authentication
✅ Required: API Key
Send your API key using:
X-API-KEY: <your_api_key>Path Parameters
project
integer
Yes
The ID of the project to delete.
Authorization Rules
Before deleting a project, DevPayr enforces multiple authorization checks.
1. Ownership
The project must belong to the API key’s user.
Attempting to delete another user’s project is not allowed.
2. API Key Scope
Global API keys may delete any project owned by the user.
Project-scoped API keys may only delete their own scoped project.
If a scoped key attempts to delete a different project, the request is rejected.
3. Subscription Plan Permission
Your subscription plan must explicitly allow project deletion.
If your plan does not permit deleting projects via API, the request is rejected.
Error (403)
Example Request
Response
Success (200)
If the project is successfully deleted, DevPayr returns a confirmation response.
Example Response
The project is soft-deleted and immediately becomes inaccessible via the API.
Deletion Behavior
The project is soft-deleted.
All future API requests referencing the deleted project will fail.
Errors
Missing API Key (401)
Invalid / Expired API Key (403)
Unauthorized Deletion (403)
Returned when:
the project does not belong to the API key owner
the API key is scoped to another project
the subscription plan does not allow deletion
Project Not Found (404)
Rate Limited (429)
Best Practices & Warnings
Double-check project IDs before deletion.
Avoid calling this endpoint from client-side environments.
Use this endpoint only from trusted backend services.
Consider disabling deletion in production workflows unless absolutely necessary.
Last updated