Delete a submission
DELETE
/v1/forms/{form}/submissions/{id}
const url = 'https://api.submeto.com/v1/forms/example/submissions/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.submeto.com/v1/forms/example/submissions/example \ --header 'Authorization: Bearer <token>'Makes a submission and its files unavailable immediately, then
permanently purges them under retention policy. Requires the
submissions:delete scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”form
required
string
The form ID.
id
required
string
The ID of the submission.
submission
required
string
The submission ID.
Responses
Section titled “Responses”Journaled deletion accepted
Media typeapplication/json
object
data
object
status
string
request_id
string
Example
{ "data": { "status": "accepted" }, "request_id": "01JREQ..."}Submission deleted before retention apply cutover
Media typeapplication/json
object
Examplegenerated
{}Not found or not granted
Media typeapplication/json
object
error
object
code
string
message
string
details
object
request_id
string
Example
{ "error": { "code": "resource_not_found", "message": "Resource not found.", "details": {} }, "request_id": "REQUEST_ID"}