How does docker delete all containers under a mirror

  docker, question

clipboard.png
As shown in the figure, I just want to delete all containers of training/webapp. is there a way to delete them in batch?

docker rm $(docker ps -a | awk '/training\/webapp/ {print $1}')