Delete all entries from an ACL expression or file.
An ACL is split into four parts:
a name for the ACL, which you choose
a fetch to collect information from the client's session
a value to match against
In the example below, we mark these parts:
frontend www bind :80 # name fetch flags value acl static_url path
-i -m beg /images/ /scripts/
Here, there is initially two values, /images/ and /scripts/. Use
clear acl to delete all values.
You can also store values in a file and then reference that file in an
acl statement by using the
-f /path/to/file flag. Use the
clear acl command to delete all values from the file. Note that this only removes it from HAProxy Enterprise's runtime memory and not to the file on disk.
clear acl to remove the values /images/ and /scripts/. You can specify the acl file by path or ID. Here we use the ID, which you can get from
$ echo "clear acl #0" | \ sudo socat stdio unix-connect:/var/run/hapee-2.2/hapee-lb.sock
In the next example, we remove all values from the ACL file
$ echo "clear acl /etc/hapee-2.2/paths.acl" | \ sudo socat stdio unix-connect:/var/run/hapee-2.2/hapee-lb.sock
Next upclear counters all