DELETE /cid
Removes all CID (International Classification of Diseases) codes from the database, effectively clearing the entire CID table.Request
No parameters required.Response
Returns HTTP 204 No Content on successful deletion of all records.Example Request
cURL
JavaScript
Response Codes
| Status Code | Description |
|---|---|
| 204 | All CID codes successfully deleted |
| 500 | Error occurred during deletion |
Implementation Details
FromCidController.java:56-60:
Use Cases
- Database reset before fresh import of CID codes
- Testing and development environment cleanup
- Preparing for a complete CID database refresh
- Migration scenarios requiring clean slate
Recovery Steps
After clearing all CID codes, repopulate the database by:-
From DATASUS (recommended):
-
From local file:
For removing a single CID code instead of all codes, use
DELETE /cid/{code}.This operation should only be performed during maintenance windows or in non-production environments.