Blog.Common.Utils.Helpers.FileHelper.DeleteFile C# (CSharp) Method

DeleteFile() public method

public DeleteFile ( string path ) : bool
path string
return bool
        public bool DeleteFile(string path)
        {
            try
            {
                File.Delete(path);
                return true;
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }