Allocating 2D Dynamic Arrays

We created 2d array dynamically , why sir do not deallocate memory ? Also , if it is not required in this case , then how to deallocate memory in this case (2d array memory deallocation ) ?
Please share the code for the same