diff --git a/Facepunch.Steamworks/Client/RemoteStorage.File.cs b/Facepunch.Steamworks/Client/RemoteStorage.File.cs index 3cac8c8..58b93ae 100644 --- a/Facepunch.Steamworks/Client/RemoteStorage.File.cs +++ b/Facepunch.Steamworks/Client/RemoteStorage.File.cs @@ -278,6 +278,19 @@ namespace Facepunch.Steamworks return true; } + /// + /// Remove this file from remote storage, while keeping a local copy. + /// Writing to this file again will re-add it to the cloud. + /// + /// True if the file was forgotten + public bool Forget() + { + if ( !Exists ) return false; + if ( _isUgc ) return false; + + return remoteStorage.native.FileForget( FileName ); + } + private void GetUGCDetails() { if ( !_isUgc ) throw new InvalidOperationException();