15.18 DELETE_COLLECTION Procedure

Deletes a named collection. All members that belong to the collection are removed and the named collection is dropped.

If the named collection does not exist for the same user in the current session for the current application ID, an application error occurs.

Syntax

APEX_COLLECTION.DELETE_COLLECTION (
    p_collection_name   IN VARCHAR2 )

Parameters

Parameter Description
p_collection_name The name of the collection to remove all members from and drop. An error is returned if this collection does not exist with the specified name of the current user and in the same session.

Example

This example removes the EMPLOYEE collection.

BEGIN
    APEX_COLLECTION.DELETE_COLLECTION(
        p_collection_name => 'EMPLOYEE');
END;