# InvalidateDocument

> Mark a document to be invalidated.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## InvalidateDocument(ulong)

Mark a document to be invalidated.

```csharp
public void InvalidateDocument(ulong documentKey)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): Document key.

## InvalidateDocument(string)

Mark a document to be invalidated.

```csharp
public void InvalidateDocument(string documentKey)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Document key.
