Hi Tao,
Currently you are using the regular cancel button. Instead you should use a custom microflow here.
-Remove the current cancel button
-Create a call microflow button.
- Retrieve the file that was just automatically committed by association
- Delete the file
- Close the page.
Hope this helps!
P.s. Is there a specific reason not to use the regular file manager widget that is included in Mendix?