docker container remove image name code example Example 1: delete all docker images docker system prune -a Example 2: remove docker images docker system prune -a