added deleteAll function