Catalog.
clearCache
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.
previous
pyspark.sql.Catalog.cacheTable
next
pyspark.sql.Catalog.createExternalTable