SharpCifs.Smb.SmbFile.Delete C# (CSharp) Method

Delete() public method

This method will delete the file or directory specified by this SmbFile.
This method will delete the file or directory specified by this SmbFile. If the target is a directory, the contents of the directory will be deleted as well. If a file within the directory or it's sub-directories is marked read-only, the read-only status will be removed and the file will be deleted.
SmbException
public Delete ( ) : void
return void
        public virtual void Delete()
        {
            Exists();
            GetUncPath0();
            Delete(Unc);
        }

Same methods

SmbFile::Delete ( string fileName ) : void