diff --git a/dlt/destinations/impl/filesystem/filesystem.py b/dlt/destinations/impl/filesystem/filesystem.py index 3a104a2a0a..cf1096784a 100644 --- a/dlt/destinations/impl/filesystem/filesystem.py +++ b/dlt/destinations/impl/filesystem/filesystem.py @@ -176,7 +176,7 @@ def drop_tables(self, *tables: str, delete_schema: bool = True) -> None: if not delete_schema: return # Delete all stored schemas - for filename, _ in self._list_dlt_table_files(self.schema.version_table_name): + for filename, _ in self._iter_stored_schema_files(): self._delete_file(filename) def truncate_tables(self, table_names: List[str]) -> None: