Drop a Custom End-User Context

Use the DROP END USER CONTEXT command to remove a custom end-user context definition from the database.

After a context is dropped, the definition is no longer available for instantiation in future sessions. Attribute values stored in existing sessions are unaffected until the session is detached or recreated.

Required privilege

Syntax

DROP END USER CONTEXT [IF EXISTS] [schema.]name;

Parameters

Parameter Description
schema The schema (owner) name of the end-user context to be dropped. If omitted, the current schema is used.
name The name of the end-user context definition to drop.

Usage notes and restrictions

For syntax diagrams and additional details, see DROP END USER CONTEXT in Oracle AI Database SQL Language Reference.

Example: Drop an end-user context

DROP END USER CONTEXT hr.hcm_context;

-- Drop only if the context exists (no error if absent):
DROP END USER CONTEXT IF EXISTS hr.hcm_context;