Fixed call to delete_device (method name changed)