Below are the case were del becomes useful:-
You can use del to removes the binding of that name from the local or global namespace.
If you assign None to a name then it will not remove the binding of the name from the namespace.
Below is the piece of code that shows how we use del:-
You can also use del for cleaning up extraneous variables in for loops:
for x in some_list:
Once you have deleted the x you can see that x will be undefined if you use it outside the for a loop.
To know more about this you can have a look at the following video tutorial:-