# Editor.Widget.DeleteOnClose

```csharp
bool DeleteOnClose { get; set; }
```

Delete this widget when close is pressed

Declared in [Editor.Widget](/api/Editor.Widget).
Assembly: `Sandbox.Tools`.
