Merge "add a rest endpoint to remove resources"