DROP AGENT Statement in Confluent Cloud for Apache Flink

Remove an agent from the environment.

Syntax

DROP AGENT [IF EXISTS] agent_name

Description

The DROP AGENT statement removes a Streaming Agent from the current environment. Once dropped, the agent cannot be used in queries and all its configuration is permanently deleted.

Parameters

  • IF EXISTS (Optional): Prevents error if agent doesn’t exist
  • agent_name (STRING): Name of the agent to remove

Examples

Remove an agent:

DROP AGENT old_agent;

Remove an agent safely (no error if it doesn’t exist):

DROP AGENT IF EXISTS old_agent;