implement the call to detach devices