Can you automatically delete or destroy files as part of an EPDM workflow?

I want to use a workflow transition to automatically delete a file when it is no longer needed.  I was thinking of trying to use either a task to delete or an action to change the file path in the transition.  Would either of these methods work?  Any input is greatly appreciated!  Thanks!

SolidworksAdministration