Back to product page

SftpDeleteFile event

Fires when SFTP user wants to delete file.


  • Basic
Private Sub object_SftpDeleteFile(User, RelativePath, ResolvedPath, Action)    
The SftpDeleteFile(object,User,RelativePath,ResolvedPath,Action) syntax has these parts:
objectA wodSSHD object.
UserA SSHUser object. Reference to user who wants to delete file.
RelativePathA String value. Relative path of the file, as seen by the user.
ResolvedPathA String value. Full path to the file on local system.
ActionA SSHActions enumeration, as described in settings. You should set to Allow to allow this action, or to Deny if you don't want to allow it.


The settings for Action are:

Constant Value Description
Deny0 Deny execution of the action.
Allow 1 Allow to execute action.

This event is fired when user tries to delete some file on your system. You can set Action = Deny if you do not wish this action to be performed, and error will be generated and sent to the user.