 
            | ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Thread Functions > IG_thread_local_data_cleanup | 
This function destroys a group of settings with a specific ID if it's not in use by any threads.
| 
                        Copy Code
                     | |
|---|---|
| AT_ERRCOUNT EXPORT ACCUAPI IG_thread_local_data_cleanup(DWORD dwClDataId); | |
| Name | Type | Description | 
| dwClDataId | DWORD | The group ID of settings to clean up. | 
Returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
| 
                        Copy Code
                     | |
|---|---|
| nErrCnt = IG_thread_local_data_cleanup( 1 ); | |