I have saved a parquet file on Spark using DataFrame.saveAsParquet() command.
How can I delete/remove this file via python code?
This parquet "file" will actually be a directory. This answer shows how to delete a directory with files in it
import shutil
shutil.rmtree('/folder_name')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With