clear is a method of directory class, del is a keyword in Python. After using clear the list is not deleted but after using del the dictionary object is deleted.
my_dict={'a':'Alex','b':'Ronald','c':'Ron'}
del my_dict
print(my_dict) #NameError
The last line will generate error as we can't print the dictionary after deleting the same.