---
title: TECDisposeConverter
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571839-tecdisposeconverter
---

# TECDisposeConverter

Disposes of a converter object.

## Declaration

```occ
OSStatus TECDisposeConverter(TECObjectRef newEncodingConverter);
```

## Parameters

- `newEncodingConverter`: A reference to the text encoding converter object you want to remove. This can be the reference returned by the doc://com.apple.documentation/documentation/coreservices/1571815-teccreateconverter, doc://com.apple.documentation/documentation/coreservices/1571829-teccreateconverterfrompath, or doc://com.apple.documentation/documentation/coreservices/1571794-teccreateonetomanyconverter functions.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion If you want to reuse the converter object for a differenttext stream with the same source and destination encoding, you shouldclear the converter object using the  TECClearConverterContextInfo  functionrather than disposing of it and then creating a new converter object.

## See Also

### Creating and Deleting Converter Objects

- [TECCreateConverter](coreservices/1571815-teccreateconverter.md)
- [TECCreateConverterFromPath](coreservices/1571829-teccreateconverterfrompath.md)
- [TECClearConverterContextInfo](coreservices/1571844-tecclearconvertercontextinfo.md)
