kOS.Safe.Persistence.Harddisk.Delete C# (CSharp) Method

Delete() public method

public Delete ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
return bool
        public override bool Delete(VolumePath path, bool ksmDefault = false)
        {
            if (path.Depth == 0)
            {
                throw new KOSPersistenceException("Can't delete root directory");
            }

            HarddiskDirectory directory = ParentDirectoryForPath(path);

            return directory.Delete(path.Name, ksmDefault);
        }