# Remove(Overlay)

> Remove an Overlay from this canvas. Removed Overlays are disassociated from OverlayCanvas and the related EditorWindow, but not destroyed. This means you are able to move a single Overlay between multiple windows.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Overlays](/engine/6000.3/script-reference/unityeditor/overlays.md)
* **Assembly:** UnityEditor

```csharp
public bool Remove(Overlay overlay)
```

### Parameters

**** (\[Overlay]\(/engine/6000.3/script-reference/unityeditor/overlays/overlay)): The Overlay to remove.

### Returns

| Type                                                          | Description                                                                                       |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if Overlay was found and removed, false if Overlay was not present in OverlayCanvas. |

### Remarks

An [Overlay](/engine/6000.3/script-reference/unityeditor/overlays/overlay.md) may only belong to a single [OverlayCanvas](/engine/6000.3/script-reference/unityeditor/overlays/overlaycanvas.md). To display an [Overlay](/engine/6000.3/script-reference/unityeditor/overlays/overlay.md) in multiple windows, you must instantiate an [Overlay](/engine/6000.3/script-reference/unityeditor/overlays/overlay.md) for each window.
