---
title: "remove(withName:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uipasteboard/remove(withname:)"
---

# remove(withName:)

Invalidates the designated app pasteboard.

## Declaration

```swift
class func remove(withName pasteboardName: UIPasteboard.Name)
```

## Parameters

- `pasteboardName`: The name of the pasteboard to be invalidated.

## Discussion

Discussion Invalidation of an app pasteboard frees up all resources used by it. Once a pasteboard is invalidated, you cannot use the it; UIPasteboard ignores any calls to it. The method has no effect if called with the name of a system pasteboard.

## See Also

### Getting and removing pasteboards

- [general](uikit/uipasteboard/general.md)
- [init(name:create:)](uikit/uipasteboard/init(name:create:).md)
- [withUniqueName()](uikit/uipasteboard/withuniquename().md)
