delete container logs docker code example Example: delete docker logs linux find /var/lib/docker/containers/ -type f -name "*.log" -delete