All Products
Search
Document Center

ApsaraDB for MongoDB:Delete an IP address whitelist

Last Updated:Mar 28, 2026

Delete IP address whitelists from an ApsaraDB for MongoDB instance to revoke access for external devices that no longer need to connect.

Prerequisites

Before you begin, ensure that you have:

Usage notes

  • Review IP address whitelists regularly and remove entries for devices that no longer need access.

Delete an IP address from a whitelist

Use this procedure to remove a specific IP address from an existing whitelist while keeping the whitelist itself.

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

  2. In the left-side navigation pane, choose Data Security > Whitelist Settings.

  3. Find the whitelist that contains the IP address, then use one of the following methods in the Actions column:

    Manually modify

    1. Click Manually Modify.

    2. In the Manually Modify panel, click the IPv4 or IPv6 tab.

      Note: IPv6 is supported only by instances that run MongoDB 4.2.
    3. In the IP Whitelist field, delete the IP address.

    4. Click OK.

    Remove via ECS instance list

    1. Click Import ECS Internal IP.

    2. In the Import ECS Internal IP panel, select the IP address in the right-side list of the IP Whitelist field.

    3. Click the 向左 icon to move the address to the left-side list.

    4. Click OK.

Delete an entire whitelist

Use this procedure to remove an entire IP address whitelist and all the IP addresses it contains.

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

  2. In the left-side navigation pane, choose Data Security > Whitelist Settings.

  3. Find the whitelist you want to delete and click Delete Whitelist in the Actions column.

  4. In the Delete Whitelist message, click OK.