adrci not purge trace files and alert logs
ADRCI deletes the XML files, but not the plain text logs, which is a nuisance.

An easy but dirty solution would be overwriting the file with empty content, e.g:

$ cat /dev/null &gt; listener.log


Deleting the file while the listener is running and logging is enabled may not lead to the expected result because of the file handling implementation on Linux/UNIX platforms.

Another solution is to temporarily disable logging, delete (or move or compress) the listener.log, then enabled logging again:

$ lsnrctl set log_status off
$ rm listener.log
$ lsnrctl set log_status on


Obviously, if you want, you can just stop the listener, take care of the listener log, then start the listener again.