delete device api call