---
title: deletePlaceholder()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uicollectionviewdropplaceholdercontext/deleteplaceholder()
---

# deletePlaceholder()

Removes an unneeded placeholder cell altogether from the collection view.

## Declaration

```swift
func deletePlaceholder() -> Bool
```

## Return Value

Return Value true if the placeholder cell was removed, or false if the cell was no longer in the collection view.

## Discussion

Discussion Use this method to remove a placeholder cell without swapping in a new cell. You might call this method if the user chooses to undo the insertion of a cell or if the contents of the collection view changed.
