---
title: reclaimResources()
framework: coreimage
role: symbol
role_heading: Instance Method
path: coreimage/cicontext/reclaimresources()
---

# reclaimResources()

Runs the garbage collector to reclaim any resources that the context no longer requires.

## Declaration

```swift
func reclaimResources()
```

## Discussion

Discussion The system calls this method automatically after every rendering operation. You can use this method to remove textures from the texture cache that reference deleted images.

## See Also

### Managing Resources

- [clearCaches()](coreimage/cicontext/clearcaches().md)
- [offlineGPUCount()](coreimage/cicontext/offlinegpucount().md)
- [workingColorSpace](coreimage/cicontext/workingcolorspace.md)
- [workingFormat](coreimage/cicontext/workingformat.md)
