Added delete functionality for a vm