---
title: "deinitializeElement(at:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/slice/deinitializeelement(at:)"
---

# deinitializeElement(at:)

Deinitializes the memory underlying the element at index.

## Declaration

```swift
func deinitializeElement<Element>(at index: UnsafeMutableBufferPointer<Element>.Index) where Base == UnsafeMutableBufferPointer<Element>
```

## Parameters

- `index`: The index of the buffer element to deinitialize.

## Discussion

Discussion The memory underlying the element at index must be initialized. After calling deinitializeElement(), the memory underlying this element of the buffer slice is uninitialized, and still bound to type Element.
