Deletes a database and all the forms and records contained therein.
Only the owner of a database may delete a database.
Request
DELETE https://www.activityinfo.org/resources/databases/{databaseId}
Response
Status Code | Error Code | Description |
---|---|---|
200 | DELETED | The database was successfully deleted. |
400 | ALREADY_ |
The database has already been deleted. |
401 | AUTHENTICATION_ |
The request must be authenticated |
403 | PERMISSION_ |
Only the database's owner can delete a database. |
404 | DATABASE_ |
Database with this ID could not be found. |
Example
curl -X DELETE -u anything:YOUR_API_TOKEN \
https://www.activityinfo.org/resources/databases/ck8oykh8m5