I have this python class in which I need to do 

```
self.data = copy.deepcopy(raw_data)

```

raw\_data is a dictionary of a dictionary and takes many megabytes in memory. I only need the data once (in which I do some modification to the data thus the need to do a deepcopy) and I would like to destroy the deepcopy data once I'm done with the computation.

What would be the best way to clear the data from the memory?

Would this work?

```
self.data = None

```

Note I'm using Python 3.4 if it makes a difference.