---
title: removeAllItems()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webhistory/removeallitems()
---

# removeAllItems()

Removes all items from the web history.

## Declaration

```swift
func removeAllItems()
```

## Discussion

Discussion When successful, this method posts a notification (WebHistoryAllItemsRemovedNotification).

## See Also

### Adding and Removing History Items

- [addItems(_:)](webkit/webhistory/additems(_:).md)
- [removeItems(_:)](webkit/webhistory/removeitems(_:).md)
