---
title: "delete(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiresponderstandardeditactions/delete(_:)"
---

# delete(_:)

Removes the selected content from your interface.

## Declaration

```swift
optional func delete(_ sender: Any?)
```

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion UIKit calls this method when the user selects the Delete command from an editing menu. Your implementation should remove the selected content from your interface.

## See Also

### Handling copy, cut, paste, and delete commands

- [cut(_:)](uikit/uiresponderstandardeditactions/cut(_:).md)
- [copy(_:)](uikit/uiresponderstandardeditactions/copy(_:).md)
- [paste(_:)](uikit/uiresponderstandardeditactions/paste(_:).md)
- [pasteAndGo(_:)](uikit/uiresponderstandardeditactions/pasteandgo(_:).md)
- [pasteAndMatchStyle(_:)](uikit/uiresponderstandardeditactions/pasteandmatchstyle(_:).md)
- [pasteAndSearch(_:)](uikit/uiresponderstandardeditactions/pasteandsearch(_:).md)
