docker system prune -f
The sh 'docker system prune -f' step runs the command to remove all unused Docker objects (images, containers, volumes, networks, etc.). The -f flag forces the prune without interactive confirmation (i.e., you don’t have to manually approve it).