Cleaning up repositories, galleries