---
title: NSDeallocateObject
framework: foundation
role: symbol
role_heading: Function
path: foundation/nsdeallocateobject
---

# NSDeallocateObject

Destroys an existing object.

## Declaration

```occ
extern void NSDeallocateObject(id object);
```

## Parameters

- `object`: An object.

## Discussion

Discussion This function deallocates object, which must have been allocated using NSAllocateObject. Special Considerations This function is deprecated and unavailable for use with ARC.

## See Also

### Object Allocation and Deallocation

- [NSAllocateObject](foundation/nsallocateobject.md)
- [NSCopyObject](foundation/nscopyobject.md)
- [NSDecrementExtraRefCountWasZero](foundation/nsdecrementextrarefcountwaszero.md)
- [NSExtraRefCount](foundation/nsextrarefcount.md)
- [NSIncrementExtraRefCount](foundation/nsincrementextrarefcount.md)
- [NSShouldRetainWithZone](foundation/nsshouldretainwithzone.md)
