---
title: "removeStroke(for:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/markuporderedset/removestroke(for:)"
---

# removeStroke(for:)

Removes the associated stroke for the given id from the set.

## Declaration

```swift
@discardableResult mutating func removeStroke(for id: UUID) -> PKStroke?
```

## Parameters

- `id`: The id of the stroke to remove.

## Return Value

Return Value The associated stroke for id if the set contains id; otherwise, nil.

## See Also

### Removing elements

- [remove(_:)](paperkit/markuporderedset/remove(_:).md)
- [remove(at:)](paperkit/markuporderedset/remove(at:).md)
- [removeAll(where:)](paperkit/markuporderedset/removeall(where:).md)
- [removeElement(for:)](paperkit/markuporderedset/removeelement(for:)-4pqof.md)
- [removeElement(for:)](paperkit/markuporderedset/removeelement(for:)-5khjd.md)
