We can turn on manipulation of a visNetwork graph output with visOptions(manipulation = T). When going to delete a node or edge, the user is asked to confirm.
visOptions(manipulation = T)