Never delete accounts permanently AND instantly. When a user requests an account deletion, first hide the account from public but have a period of at least several days when they can log into it and cancel the deletion and reinstate their account. Only actually irreversibly delete stuff from the database when that period has expired.