Server on raspberry crashed, what about the database

Hi

My server has crashed: the sd card seems corrupted. I am going to do a fresh install.
The files were stocked on an external drive. Do I have to delete all files in there (commits, fs, httptemp… directory)? or keeping them will permit to resynchronize faster on the server first boot?