---
title: "清空用户流量记录"
method: DELETE
path: "/admin/traffic/user/{userId}/clear"
tags: ["管理员流量"]
---

# 清空用户流量记录

`DELETE /admin/traffic/user/{userId}/clear`

删除指定用户的所有历史流量记录，用于重新计数

## Path parameters

- `userId` integer, required

## Response `200`

OK

- CommonResponse
  - `code` integer
  - `data` unknown
  - `message` string
  - `msg` string

## Changes

> 58 revisions in range; 26 could not be searched.

- **2025-10-22** `dcdf027169a3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api/changes/admin/traffic/user/:userId/clear/delete.md)

---

[API](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api.md) · [All operations](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oneclickvirt/oneclickvirt-api/revisions/2d2db1776645/schema)
