Add delete machine function