if you delete all files you lose all members and posts in other words you install from new
Deleting the files does nothing to the data, as long as you have a copy of the database you won't lose your members or posts. Deleting all the files and re-uploading them will however make sure that any changes the hacker made have been removed.