You do not. This is what a garbage collector does automatically - basically when the .NET runtime needs memory, it will go around and delete objects that are not longer in use.
What you have to do for this to work is to remove all linnks to the object.
In your case....
obj1=null;
at the end, then the object is no longer referenced and can be claimed from the garbage collector.
You can check http://en.wikipedia.org/wiki/Garbage_collection_(computer_science) for more details.
Note that if the object has references to unmanaged ressources (like open files etc.) it should implement the Disposable pattern (IDisposable interface) and you should explicitely release those references when you dont need the object anymore.