> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Remove Wi-Fi Information

> Call this API to batch remove Wi-Fi entries from an attendance group by group ID and Wi-Fi keys, up to 100 per call.

Call this API to batch remove Wi-Fi information from a specified attendance group.

## Request

| **Basic Information** | |
| - | - |
| HTTP URL | [https://api.dingtalk.io/topapi/attendance/group/wifis/remove](https://api.dingtalk.io/topapi/attendance/group/wifis/remove) |
| HTTP Method | POST |
| Supported app types | appType-Internal app |
| Required permissions | permission-qyapi\_attendance\_group\_manage-Attendance group management permission |

### Query Parameters

| Name | Type | Required | Example | Description |
| - | - | - | - | - |
| access\_token | String | Yes | 6d1bxxxx | The app credential used to call this API. Obtain it by calling the [Get the access\_token of an internal app](https://help.dingtalk.io/open/development/obtain-orgapp-token) API. |

### Request Body

| Name | Type | Required | Example | Description |
| - | - | - | - | - |
| op\_userid | String | No | user01 | The userId of the operator. |
| group\_key | String | Yes | CEDDFxxxx | The attendance group ID.  **Note**  If you identify the attendance group by group\_id, call the [Convert groupId to groupKey](https://help.dingtalk.io/open/development/groupid-to-groupkey.md) API to convert group\_id to group\_key. |
| wifi\_key\_list | String | Yes | 0151Exxxx | The Wi-Fi keys. Obtain them by calling the [Batch query Wi-Fi information](https://help.dingtalk.io/open/development/batch-query-wifi-under-attendance-group.md) API. Remove up to 100 Wi-Fi entries per call. |

### Request Example

```curl theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "https://api.dingtalk.io/topapi/attendance/group/wifis/remove" \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'access_token=deb9baxxxx32b89' \
-d 'group_key=0151E022xxxx917E876' \
-d 'op_userid=123456' \
-d 'wifi_key_list=0151E02xxxx917E876'
```

Java

```java theme={"theme":{"light":"github-light","dark":"github-dark"}}
DingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
OapiAttendanceGroupWifisRemoveRequest req = new OapiAttendanceGroupWifisRemoveRequest();
req.setOpUserid("user01");
req.setGroupKey("CEDDFxxxx");
req.setWifiKeyList("0151Exxxx");
OapiAttendanceGroupWifisRemoveResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());
```

Python

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import dingtalk.api

req=dingtalk.api.OapiAttendanceGroupWifisRemoveRequest("https://api.dingtalk.io/topapi/attendance/group/wifis/remove")

req.op_userid="123456"
req.group_key="0151E02xxxx917E876"
req.wifi_key_list="0151E02xxxx7E876"
try:
  resp= req.getResponse(access_token)
  print(resp)
except Exception,e:
  print(e)
```

PHP

```php theme={"theme":{"light":"github-light","dark":"github-dark"}}
include "TopSdk.php";
date_default_timezone_set('Asia/Shanghai');

$c = new DingTalkClient(DingTalkConstant::$CALL_TYPE_OAPI, DingTalkConstant::$METHOD_POST , DingTalkConstant::$FORMAT_JSON);
$req = new OapiAttendanceGroupWifisRemoveRequest;
$req->setOpUserid("123456");
$req->setGroupKey("0151E02xxxx17E876");
$req->setWifiKeyList("0151E02xxxx7E876");
$resp = $c->execute($req, $access_token, "https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
```

C#

```csharp theme={"theme":{"light":"github-light","dark":"github-dark"}}
IDingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/remove");
OapiAttendanceGroupWifisRemoveRequest req = new OapiAttendanceGroupWifisRemoveRequest();
req.OpUserid = "123456";
req.GroupKey = "0151E022xxxx7E876";
req.WifiKeyList = "0151E0xxxx17E876";
OapiAttendanceGroupWifisRemoveResponse rsp = client.Execute(req, access_token);
Console.WriteLine(rsp.Body);
```

## Response

### Response Body

| Name | Type | Example | Description |
| - | - | - | - |
| result | Result | | The list of wifiIds that were deleted successfully. |
| error\_info\_list | ErrorInfo\[] | | The list of failures. |
| failure\_list | String\[] | 0151EEDDDF0xxxx | The list of errors. |
| msg | String | business fault | The error description. |
| code | String | 1000 | The error code. |
| success\_list | String\[] | 0151EEDDDF0xxxx | The list of successes. |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The return code description. |
| success | Boolean | true | Indicates whether the call succeeded.   - **true**: Success - **false**: Failed |
| request\_id | String | 7o76z7s5cett | The request ID. |

### Response Body Example

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "errcode": 0,
  "errmsg":"ok",
  "result": {
    "success_list": [
      "0151Exxxx",
    ]
  },
  "success": true,
  "request_id": "7o76z7s5cett"
}
```

### Error Codes

If the call returns an error, find a solution in the [Global error codes](https://help.dingtalk.io/open/development/server-api-error-codes-1.md) document based on the error message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.