.NET - Collection.Doc.Delete()

Delete a document from a collection.

using Nitric.Sdk;
using Nitric.Sdk.Resources;
var profiles = Nitric.Collection<Profile>("profiles").With(CollectionPermission.Reading);
var drakesProfile = profiles.Doc("Drake Mallard");
drakesProfile.Delete();
Nitric.Run();

See also

Last updated on Oct 18, 2024