The following command deletes a WAF custom rule called CustomRules.

Note: Only one rule can be deleted at a time.

Situation before delete:

To view a list of installed rules, run the listwafrules command.

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="ok">
<Success><Data><Rules><Inactive1>Custom/</Inactive1>
<Inactive2>Custom/CustomRules</Inactive2>
<Inactive3>Generic/ip_reputation</Inactive3>
<Inactive4>Generic/malware_detection</Inactive4>
.
.
.
Note: The file extension is not used in the filename parameter in this command.
curl -k "https://bal:1fourall@20.200.25.100/access/delwafcustomrule?filename=CustomRules"

Situation after delete:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="ok">
<Success><Data><Rules><Inactive1>Custom/</Inactive1>
<Inactive2>Generic/ip_reputation</Inactive2>
<Inactive3>Generic/malware_detection</Inactive3>
.
.
.