Hi @Lennon_Lee,
This digital ocean tutorial is really nice (like most of theirs are):
You should be able to use the docker rmi
subcommand.
Docker is pretty good about retaining intermediate images when they are shared (which are not usually even presented to you) so you won't affect containers which you aren't specifically removing.