---
title: removeAllAllocations()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlresidencyset/removeallallocations()
---

# removeAllAllocations()

Stages all the resources in the residency set to leave its list of allocations.

## Declaration

```swift
func removeAllAllocations()
```

## Discussion

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

## See Also

### Removing allocations

- [removeAllocation(_:)](metal/mtlresidencyset/removeallocation(_:).md)
- [removeAllocations(_:)](metal/mtlresidencyset/removeallocations(_:).md)
