# DeleteCompressor

Deletes a compression engine.

### Synopsis

`Err DeleteCompressor(Compressor *comp);`

### Description

Deletes a compression engine previously created by `CreateCompressor()`. This flushes any data left to be output by the compressor and generally cleans things up.

### Arguments

comp
  An active compression handle, as obtained from CreateCompressor(). Once this call is made, the compression handle becomes invalid and can no longer be used.

### Return Value

Returns > = 0 if successful, or a negative error code if it fails. Possible error codes include:

COMP_ERR_BADPTR
  An invalid compression handle was supplied.

### Implementation

Folio call implemented in compression folio V24.

### Associated Files

compression.h

### See Also

``CreateCompressor`()`