@DELETE — Aquilia Documentation
Comprehensive guide and documentation for @DELETE in the Aquilia framework. View API reference, examples, and implementation patterns.
Back to Decorators @DELETE The @DELETE decorator handles HTTP DELETE requests, used to remove resources. Successful operations typically return an empty body with a 204 No Content status code. Basic Usage Response Semantics A DELETE operation is typically idempotent. If the resource is already gone, repeated calls should explicitly or implicitly succeed. 204 No Content The standard response for success. The client should not expect any content in the body. 202 Accepted Use this if the deletion is queued for background processing (soft delete, heavy cleanup). Warning: Body Content While HTTP specific allows a body in DELETE requests, many clients, proxies, and caches discard it. Avoid relying on request bodies for DELETE operations; use path parameters or query strings instead. Previous: @PATCH Next: @HEAD )
Go to Homepage