public sealed class DocumentRemove : IMessage<DocumentRemove>, IEquatable<DocumentRemove>, IDeepCloneable<DocumentRemove>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class DocumentRemove.
A [Document][google.firestore.v1.Document] has been removed from the view of
the targets.
Sent if the document is no longer relevant to a target and is out of view.
Can be sent instead of a DocumentDelete or a DocumentChange if the server
can not send the new value of the document.
Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
returned for the same logical write or delete, if multiple targets are
affected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eDocumentRemove\u003c/code\u003e class within the Google Cloud Firestore v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentRemove\u003c/code\u003e signifies a document has been removed from a target's view, indicating it's no longer relevant, and can be sent in place of \u003ccode\u003eDocumentDelete\u003c/code\u003e or \u003ccode\u003eDocumentChange\u003c/code\u003e if a new value is unavailable.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, inheriting from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDocumentRemove\u003c/code\u003e include \u003ccode\u003eDocument\u003c/code\u003e (the document's resource name), \u003ccode\u003eReadTime\u003c/code\u003e (the timestamp of the remove), and \u003ccode\u003eRemovedTargetIds\u003c/code\u003e (IDs of targets that previously matched the document).\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eDocumentRemove\u003c/code\u003e is 3.10.0, with older versions available dating back to 2.3.0, accessible through their respective links.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class DocumentRemove (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.DocumentRemove)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.DocumentRemove) \n\n public sealed class DocumentRemove : IMessage\u003cDocumentRemove\u003e, IEquatable\u003cDocumentRemove\u003e, IDeepCloneable\u003cDocumentRemove\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class DocumentRemove.\n\nA \\[Document\\]\\[google.firestore.v1.Document\\] has been removed from the view of\nthe targets.\n\nSent if the document is no longer relevant to a target and is out of view.\nCan be sent instead of a DocumentDelete or a DocumentChange if the server\ncan not send the new value of the document.\n\nMultiple \\[DocumentRemove\\]\\[google.firestore.v1.DocumentRemove\\] messages may be\nreturned for the same logical write or delete, if multiple targets are\naffected. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DocumentRemove \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DocumentRemove](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.DocumentRemove), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DocumentRemove](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.DocumentRemove), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DocumentRemove](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.DocumentRemove), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore.V1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.V1.dll\n\nConstructors\n------------\n\n### DocumentRemove()\n\n public DocumentRemove()\n\n### DocumentRemove(DocumentRemove)\n\n public DocumentRemove(DocumentRemove other)\n\nProperties\n----------\n\n### Document\n\n public string Document { get; set; }\n\nThe resource name of the \\[Document\\]\\[google.firestore.v1.Document\\] that has\ngone out of view.\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nThe read timestamp at which the remove was observed.\n\nGreater or equal to the `commit_time` of the change/delete/remove.\n\n### RemovedTargetIds\n\n public RepeatedField\u003cint\u003e RemovedTargetIds { get; }\n\nA set of target IDs for targets that previously matched this document."]]