added untested function to delete galleries