Added api call to delete device