---
schema_version: "1"
id: 5f811de5952129905bccb0f84c83ecfafb8c3519abae851d54d31d1d3e958319
title: HttpDelete Annotation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_classes_annotation_http_delete.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_delete.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e31852ea6e888afdfffc5b2ae1e391840448f3d08598dc7588c036bb38c5d155
---
# HttpDelete Annotation

The @HttpDelete annotation is used at the method level and enables you to expose an Apex method as a REST resource. This method is called when an HTTP DELETE request is sent, and deletes the specified resource.

To use this annotation, your Apex method must be defined as global static.