# Delete a ruleset **DELETE /deployments/traffic-filter/rulesets/{ruleset_id}** Deletes the ruleset by ID. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **ruleset_id** (string) The mandatory ruleset ID. ### Query parameters - **ignore_associations** (boolean) When true, ignores the associations and deletes the ruleset. When false, recognizes the associations, which prevents the deletion of the rule set. ## Responses ### 200 The traffic filter ruleset was successfully deleted. #### Body: application/json (object) object ### 404 The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 500 Error deleting the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)