Skip to content

Destroy (DELETE)

Requirement

  • The operation must use the DELETE method when destroying resources.
  • The operation must not include a request body.
  • The operation should return any errors inside an errors object.
  • The operation must return a 404 status code if the resource can't be found.

Guidance

  • Success operations that include a status in the body should return a 200 status code.
  • Success operations that do not include a status in the body should return a 204 status code.

Destroying a resource

Example destroy request

DELETE ../rx/v0/prescriptions/1c2dfaaa-4eb9-482e-86a9-4e7274975967
// No request body 

Example destroy response

204 No Content
// No response body