{"_id":"591a8ea0b560ce1b00071dda","user":"564a46904fa1460d00780c0d","__v":0,"category":{"_id":"591e4c277f22100f00031521","project":"56008ba98c0c9d0d00dcaeb0","__v":0,"version":"5719767ec863120e0012a042","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-05-19T01:36:39.888Z","from_sync":false,"order":4,"slug":"rules","title":"Rules"},"version":{"_id":"5719767ec863120e0012a042","hasDoc":true,"project":"56008ba98c0c9d0d00dcaeb0","__v":7,"hasReference":true,"createdAt":"2016-04-22T00:55:26.295Z","releaseDate":"2016-04-22T00:55:26.295Z","categories":["5719767ec863120e0012a043","5719767ec863120e0012a044","5719767ec863120e0012a045","5719767ec863120e0012a046","5719767ec863120e0012a047","5719767ec863120e0012a048","5719767ec863120e0012a049","57f45a18da14e71700d12e4a","582b71b15403840f008c0410","58c060cf3eee111b00a8b210","591e4c277f22100f00031521","591e4c3d094c5b0f006769fe","591e4c461e0dc20f0047b58b"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"project":"56008ba98c0c9d0d00dcaeb0","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-16T05:31:12.293Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[{"status":204,"name":"","code":"","language":"json"},{"language":"json","status":400,"name":"","code":""},{"status":401,"language":"text","code":""}]},"method":"delete","examples":{"codes":[{"code":"curl -XDELETE 'https://api.thisdata.com/v1/rules/234677874491720987?api_key=API_KEY' \n","language":"text","name":"curl"}]},"auth":"required","params":[{"_id":"591a7fc4064b8319004caae9","ref":"","in":"query","required":false,"desc":"Your ThisData API key","default":"","type":"string","name":"api_key"},{"_id":"591a822885b2570f00e43326","ref":"","in":"path","required":false,"desc":"The Rule ID that you want to fetch","default":"","type":"int","name":"id"}],"url":"/v1/rules/:id"},"isReference":true,"order":4,"body":"### Authentication\n\nYour API Key must be provided in the URL's query string. [Learn more about Authentication & your API Key](doc:authentication-api-key).\n\n### Response Messages\n\n* 204 - Success, the Rule has been deleted\n* 400 - Invalid query string\n* 401 - Invalid API Key\n* 404 - The rule does not exist\n\n### Time to delete\nThe deletion is irreversible at the time of a successful API call but can take up to 10 minutes to fully take effect.","excerpt":"Permanently delete a rule","slug":"v1rulesid-2","type":"endpoint","title":"Delete a rule"}

deleteDelete a rule

Permanently delete a rule

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
integer
The Rule ID that you want to fetch

Query Params

api_key:
string
Your ThisData API key

Examples


Documentation

### Authentication Your API Key must be provided in the URL's query string. [Learn more about Authentication & your API Key](doc:authentication-api-key). ### Response Messages * 204 - Success, the Rule has been deleted * 400 - Invalid query string * 401 - Invalid API Key * 404 - The rule does not exist ### Time to delete The deletion is irreversible at the time of a successful API call but can take up to 10 minutes to fully take effect.