as we know，Hadoop API deleted cannot go to trash.
Is there any other way to solve this Hadoop API deletion problem, except at the code layer?
What I want to know is whether it can be solved on the platform ?
I think you can do this using the WebHDFS REST API. The call Get_Trash_Root will tell you where the current users trash folder is.
Then rename the files to change its path to the .trash folder