Troubleshooting Database logfile removal Every time a Nix database transaction takes place, Nix writes a record of this transaction to a log in its database directory to ensure that the operation can be replayed in case of a application or system crash. However, without manual intervention, the log grows indefinitely. Hence, unused log files should be deleted periodically. This can be accomplished using the following command: $ rm `db_archive -a -h prefix/var/nix/db`