All Products
Search
Document Center

PolarDB:RESET SLAVE ALL

Last Updated:Mar 28, 2026

RESET SLAVE ALL removes primary/secondary replication links established by CHANGE MASTER TO.

Syntax

RESET SLAVE ALL [channel_option]

channel_option:
    FOR CHANNEL channel

Example 1

Remove all primary/secondary replication links established by CHANGE MASTER TO:

RESET SLAVE ALL;

Example 2

Remove the replication link for a specific channel named TEST:

RESET SLAVE ALL FOR CHANNEL 'TEST';