changed ndeleteallvms to ndeletevms and added a pattern