refactored CommandDeleteAll