assert db is in-memory before remove_all