Purging all files from the trash in Hadoop HDFS using the 'expunge' command in the file system shell to permanently delete data.