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

# remove(at:)

Removes the descriptor at the specified (one-based) position in the receiving descriptor list.

## Declaration

```swift
func remove(at index: Int)
```

## Parameters

- `index`: The one-based position of the descriptor to remove.

## Discussion

Discussion The receiver must be a list descriptor. The  indices are one-based. Currently provides no indication if an error occurs.

## See Also

### Working With List Descriptors

- [atIndex(_:)](foundation/nsappleeventdescriptor/atindex(_:).md)
- [insert(_:at:)](foundation/nsappleeventdescriptor/insert(_:at:).md)
