---
title: "removeAllocations(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlresidencyset/removeallocations(_:)"
---

# removeAllocations(_:)

Stages multiple resources to leave the residency set’s list of allocations.

## Declaration

```swift
func removeAllocations(_ allocations: [any MTLAllocation])
```

## Parameters

- `allocations`: An array of resource allocations, whose elements can be an arbitrarily mix of doc://com.apple.metal/documentation/Metal/MTLBuffer, doc://com.apple.metal/documentation/Metal/MTLTexture, and doc://com.apple.metal/documentation/Metal/MTLHeap instances.

## Discussion

Discussion Finalize the removal of these resource allocations, and all other changes you stage, by calling a residency set’s commit() method.

## See Also

### Removing allocations

- [removeAllAllocations()](metal/mtlresidencyset/removeallallocations().md)
- [removeAllocation(_:)](metal/mtlresidencyset/removeallocation(_:).md)
