cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

IP & Network → Remove IP address

AI-generated

Summary

Remove an IPv4 address from the WHM server network configuration.

Inputs

  • Ip (required) — The IPv4 address to remove.
  • Ethernetdev — The network alias (ethernet device) to which the IPv4 address is bound.
  • Skipifshutdown — Whether to skip removing the IP address if the ethernet interface is down (1 to skip, 0 to remove regardless).

Output shape

a JSON object with the WHM API response confirming the removal status

The output contains WHM API response data confirming success or failure of the IP address removal operation.

Examples

Example 1: Remove an IP address unconditionally

Set the required Ip field with the IPv4 address and leave Additional Fields empty or Skipifshutdown set to 0.

Example 2: Remove an IP address only if the ethernet interface is up

Set the Ip field, optionally specify Ethernetdev, and set Skipifshutdown to 1 to prevent removal if the interface is down.

Links

Discussion