    func deleteAll<T: Storable>(_ model: T.Type) throws {
        guard let storable = model as? Object.Type else {
            throw RealmDatabaseError.objectCouldNotBeParsed
        }

        try writeSafely { [weak self] in
            guard let self = self else { return }
