Actually, the proper way to delete a column from pandas data frame is same what you've guessed:-
But It is very difficult to make del df.column_name work simply as the result of syntactic limitations in Python. del df[name] gets translated to df.__delitem__(name) under the covers by Python.
If you want to try an alternate way of deleting the column in pandas is to use the drop():-
df = df.drop('column_name', 1)
Here 1 is the axis number which is 0 for rows and 1 for columns.
You can use the following video tutorials to clear all your doubts:-