How to empty network after using setinput(blob) and forward?

Hi,

Is there any way I can empty a neural network after I insert the blob in the network? Does setinput(blob) increases the memory usage?

Thanks