Add basic codes for deleteAll function.