You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Specify the minimum available disk space.
$ dpconf set-access-log-prop -h host -p port min-free-disk-space-size:memory-size |
For example, to delete backup log files when the available disk space is less than 2 Mbytes, use this command:
$ dpconf set-access-log-prop -h host1 -p 1389 min-free-disk-space-size:2M |