nnmail-delete-file-function

nnmail-delete-file-function is a variable defined in `nnmail.el'.
Its value is
delete-file

  • This variable may be risky if used as a file-local variable.

Documentation:
Function called to delete files in some mail backends.

You can customize this variable.