delete devices before recreating them