We can use the delcommand to deleteeitheran element from the list or the whole list. The del command does not return anything. We can also use the pop method to remove elements from the list. The pop method takesthe index of the element that we wish to removeas an argument:
The entire list structure can be deleted as follows: