C# .NET is in development for v1. Interested in contributing or chatting with us?Get in touch!
.NET - Bucket.File.Delete()
Delete a file from a bucket.
using Nitric.Sdk;
using Nitric.Sdk.Storage;
var assets = Nitric.Bucket('assets').With(BucketPermission.Deleting);
var logo = assets.File('images/logo.png');
logo.Delete();
Nitric.Run();
Examples
Delete a file
using Nitric.Sdk;
using Nitric.Sdk.Storage;
var assets = Nitric.Bucket('assets').With(BucketPermission.Deleting);
var logo = assets.File('images/logo.png');
logo.Delete();
Nitric.Run();