Made clearData accept argument