Simplify the "deleteAll" method.