remove locations helper