Jupyterlab save notebook without cells output

Hi team,

When saving ipynb files in jupyterlab, code cells with their output is also getting saved.
What i want is to save only code cells not their output.

I searched little bit and found we can implement pre_save_hook but didnt found where we have to implement it. Can anyone guide me on that? or there is anyother way to do it?