AppHarbor.PhysicalFileSystem.Delete C# (CSharp) Method

Delete() public method

public Delete ( string path ) : void
path string
return void
        public void Delete(string path)
        {
            var directory = new DirectoryInfo(path);
            if (directory.Exists)
            {
                directory.Delete(recursive: true);
                return;
            }

            var file = new FileInfo(path);
            if (file.Exists)
            {
                file.Delete();
            }
        }