Delete an alerting rule previously installed using
|database?||Perform this operation on the named content database instead of the default content database associated with the REST API instance. Using an alternative database requires the "eval-in" privilege; for details, see Security Requirements in the REST Application Developer's Guide.|
MarkLogic Server responds with status 204 (Deleted), even if there is no rule installed with the given name.
If the Alerting API is not enabled, MarkLogic Server returns status 403.
rest-writerrole, or the following privilege:
Alerting applications require a valid alerting license key. The license key is required to use the reverse index and to use the Alerting API.
$ curl --anyauth --user user:password -X DELETE -i \ 'http://localhost:8000/v1/alert/rules/example' ==> The rule installed under the name "example" is deleted. MarkLogic Server responds with output similar to the following: HTTP/1.1 204 Deleted Server: MarkLogic Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5