Deleting a Form
Changed onWhen a Form is deleted, it goes into the Trash section, but it can now be restored from the Trash. After 30 days in the Trash, the Form and all of its resources and submissions will be automatically purged. If your goal is to prevent it from showing up on survey clients like ODK Collect, consider setting its state to closing or closed instead (see Modifying a Form just above for more details).
The API usually identifies forms by their projectId and xmlFormId, but if a Form is deleted, the same xmlFormId can be reused. To restore a deleted Form, use its numeric ID, which can be retrieved by listing Forms with ?deleted=true.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/projects/{projectId}/forms/{xmlFormId}
- Authnone declared
Path parameters
The xmlFormId of the Form being referenced.
The numeric ID of the Project
Response
OK
Example response
{
"success": true
}Changes
- info
api operation id
Deleting a Formremoved and replaced withdeleteForm
- info
- info
removed the non-success response with the status
- info