Minor fix in delete call in main method