Nitric logo

Storage

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();
Previous
file.write()