rest api updated: now possible to delete either