Remove docker containers with the same name prefix in one command

docker ps -aq --filter name="NAMEHERE*" | xargs docker stop | xargs docker rm