# Delete archived report row data

Delete archived report row data directly by month, user, and archive rule ID
**Notice**：The page has no corresponding function, the page is deleted by importing and replacing all data

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/attendance/v1/archive_rule/del_report
HTTP Method | POST
Rate Limit | [50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.** | Add attendance data(attendance:task)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>or<br>`user_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer u-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
employee_type | string | Yes | The user_ids in the request body and the employee ID type of the user_id in the response body. If you don't have background administrative privileges, you can use [Get user ID by mobile phone number or email](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/batch_get_id)<br>* employee_id: employee ID, which is the user ID in [Feishu admin background](https://example.feishu.cn/admin/contacts/departmentanduser) > organizational structure > members and departments > member details<br>* employee_no: employee job number, that is, job number in [Feishu management background](https://example.feishu.cn/admin/contacts/departmentanduser) > organizational structure > members and departments > member details<br>**Example value**: employee_id

### Request body

Parameter | Type | Required | Description
---|---|---|---
month | string | Yes | Month, format yyyyMM<br>**Example value**: "202409"
operator_id | string | Yes | Operator ID, corresponding to employee_type<br>**Example value**: "a111xd"
archive_rule_id | string | Yes | Archive rule id, which can be obtained according to [Query all archive rules](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/list)<br>**Example value**: "1"
user_ids | string\[\] | No | User ID, corresponding to employee_type<br>**Example value**: ["xx1uad"]

### Request body example
```json
{
    "month": "202409",
    "operator_id": "a111xd",
    "archive_rule_id": "1",
    "user_ids": [
        "xx1uad"
    ]
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {}
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
400 | 1220001 | "% V" means dynamic return, that is, different err msg is returned according to the actual error scenario. | The imported parameter verification failed. Please check the imported parameter according to the specific returned information. For example, "employee_type invalid" means that the person type is abnormal. If it still cannot be solved, please contact [Technical Support](https://applink.feishu.cn/TLJpeNdW)
400 | 1220600 | Generic error message | The general error message contains multiple messages. Detailed error messages and handling suggestions can be found in [Error Messages](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines)
500 | 1225000 | "% V" means dynamic return, that is, different err msg is returned according to the actual error scenario. | Please refer to the actual error message returned to troubleshoot the problem. For example, "internal server error" represents an internal service exception. If it still cannot be solved, please contact [technical support](https://applink.feishu.cn/TLJpeNdW)

