1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-31 14:04:50 +01:00

10 lines
357 B
JavaScript
Raw Normal View History

2018-02-08 22:04:10 -08:00
import { accountsCache, clearCache, metaCache, statusesCache } from './cache'
import { deleteDatabase } from './databaseLifecycle'
2018-02-08 22:29:29 -08:00
export async function clearDatabaseForInstance (instanceName) {
2018-02-08 22:04:10 -08:00
clearCache(statusesCache, instanceName)
clearCache(accountsCache, instanceName)
clearCache(metaCache, instanceName)
await deleteDatabase(instanceName)
2018-02-08 22:29:29 -08:00
}