add deleteAll function