---
title: "remove(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutableset/remove(_:)"
---

# remove(_:)

Removes a given object from the set.

## Declaration

```swift
func remove(_ object: Any)
```

## Parameters

- `object`: The object to remove from the set.

## See Also

### Related Documentation

- [minus(_:)](foundation/nsmutableset/minus(_:).md)
- [intersect(_:)](foundation/nsmutableset/intersect(_:).md)

### Adding and removing entries

- [add(_:)](foundation/nsmutableset/add(_:).md)
- [filter(using:)](foundation/nsmutableset/filter(using:).md)
- [removeAllObjects()](foundation/nsmutableset/removeallobjects().md)
- [addObjects(from:)](foundation/nsmutableset/addobjects(from:).md)
