Need to setup Auto-Delete when a file is successfully downloaded

Need to setup Auto-Delete when a file is successfully downloaded

All how can i setup an event that triggers when a file gets downloaded successfully and deletes this file from the FTP Server?