
You can uncache a DataFrame or RDD by using the .unpersist() method. This frees up memory or other storage resources.
fabricofdata_df.unpersist()
fabricofdata_RDD.unpersist()
If you want to unpersist all cached data:
spark.catalog.clearCache()