pyspark.sql.Catalog.clearCache

Catalog.clearCache() → None

Removes all cached tables from the in-memory cache.

Notes

Cached data is shared across all Spark sessions on the cluster, so clearing the cache affects all sessions.