Add a gs_container_remove_all utility

This code was duplicated in almost all shell files.