Added delete functinality to devices/{id}