Raven.Light.Persistence.StorageActions.Delete C# (CSharp) Method

Delete() public method

public Delete ( string key, System.Guid etag ) : void
key string
etag System.Guid
return void
		public void Delete(string key, Guid? etag)
		{
			if (EnsureEtagMatches(key, etag) == false)
				return;

			Storage.Documents.Remove(key);
		}

Usage Example

		public BatchResult Execute(StorageActions storage)
		{
			storage.Delete(Key, Etag);
			return new BatchResult
			{
				Key = Key,
			};
		}