Add removeLayer command to API