support null arguments in deleteX