Home > Article > Operation and Maintenance > How to use DeleteNetworkInterface to quickly and easily delete an elastic network card
This article introduces how to use DeleteNetworkInterface to quickly and easily delete an elastic network card, and focuses on the specific steps. The content of this article is compact, and I hope everyone can gain something.
DeleteNetworkInterface
Description
The elastic network card must be in the available (Available) state.
If the elastic network card has been attached to the ECS instance, it must be detached from the instance (DetachNetworkInterface) before the elastic network card can be deleted.
After deleting the elastic network card:
The primary private IP address (PrimaryIpAddress) of the elastic network card is automatically released.
The deleted elastic network card exits all security groups to which it belongs.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=DeleteNetworkInterface &RegionId=cn-hangzhou &NetworkInterfaceId=[networkInterfaceId] &<公共请求参数>
Return example
XML format
<DetachNetworkInterface> <RequestId>04F0F334-1335-436C-A1D7-6C044FExxxxx</RequestId> </DetachNetworkInterface>
JSON format
{ "RequestId": "04F0F334-1335-436C-A1D7-6C044FExxxxx", }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to use DeleteNetworkInterface to quickly and easily delete an elastic network card. For more information, please follow other related articles on the PHP Chinese website!