Skip to main content
The Delete Form endpoint performs a soft delete — the form record is retained in the system but is deactivated and no longer returned by the List Forms endpoint. Any active donors attempting to use the form’s URL after deletion will receive a 410 Gone response. Deleting an already-deleted form also returns 410. This operation cannot be reversed through the API.

Endpoint

DELETE https://0k90mc4jjj.execute-api.us-east-2.amazonaws.com/v1/forms/{id}

Authentication

Authorization
string
required
Bearer token using your API key. Format: Bearer cs_live_your_key

Path parameters

id
string
required
The unique identifier of the form to delete.

Response

message
string
Confirmation message: "Form deleted successfully".
formID
string
The ID of the form that was deleted.

Status codes

CodeDescription
200Form deleted successfully.
401Missing or invalid API key.
403Form belongs to a different merchant.
404No form found with the given ID.
410Form has already been deleted.

Example

cURL
curl -X DELETE https://0k90mc4jjj.execute-api.us-east-2.amazonaws.com/v1/forms/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer cs_live_your_key"
200 response
{
  "message": "Form deleted successfully",
  "formID": "550e8400-e29b-41d4-a716-446655440000"
}
410 response (already deleted)
{
  "error": "Form has already been deleted"
}
Deletion is permanent through the API. To temporarily stop accepting donations without deleting the form, set active to false using the Update Form endpoint instead.