allow_​delete

Version: v2025-02-18Includes use: Yes

Behavior name: Allow DELETE

Allow HTTP requests using the DELETE method. By default, GET, HEAD, and OPTIONS requests are allowed, and all other methods result in a 501 error. Such content does not cache, and any DELETE requests pass to the origin. See also the allow​_options, allow​_patch, allow​_post, and allow​_put behaviors.

Default behavior

These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.

data "akamai_property_rules_builder" "allow_delete" {
  rules_v2025_02_18 {
    name     = "Allow DELETE"
    comments = "Allow HTTP requests using the DELETE method."
    behavior {
      allow_delete {
        enabled    = true
        allow_body = false
      }
    }
  }
}
"behaviors": [  
  {
    "Name": "allowDelete",
    "options": {
      "enabled": true,
      "allowBody": false
    }
  }
]

Options

Option Description
enabled
Allows DELETE requests. Content does not cache.
allow_​body
Allows data in the body of the DELETE request.