[Core] Fix compile, readd DeleteInactiveAccounts