# tibemsDestination_Destroy

Function

## Purpose

Destroy a destination object.

## C Declaration

    tibems_status tibemsDestination_Destroy(
        tibemsDestination destination );

## COBOL Call

    CALL "tibemsDestination_Destroy"
         USING BY VALUE destination,
               RETURNING tibems-status
    END-CALL.

Note: `destination` has usage pointer.

## Parameters

Parameter | Description
--- | ---
`destination` | Destroy this destination.

## Remarks

Note that a destination object retrieved from a message, consumer, or producer object should only be destroyed by calling the destroy function of the corresponding message, consumer, or producer object.

Copyright © Cloud Software Group, Inc. All rights reserved.