tencent cloud

Chat

제품 소개
제품 개요
Basic Concepts
응용 시나리오
기능 소개
계정 시스템
사용자 정보 및 관계망
메시지 관리
그룹 시스템
Official Account
Audio/Video Call
사용 제한
구매 가이드
과금 개요
요금 안내
Purchase Instructions
Renewal Guide
연체 안내
Refund Policy
다운로드 센터
SDK & Demo 소스 코드
업데이트 로그
시나리오 솔루션
Live Streaming Setup Guide
AI Chatbot
대규모 엔터테인먼트 협업 커뮤니티
Discord 구현 가이드
IM을 게임에 통합하는 방법
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
클라이언트 APIs
SDK API(Web)
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
서버 APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
콘솔 가이드
New Console Introduction
애플리케이션 생성 및 업그레이드
기본 설정
기능 설정
계정 관리
그룹 관리
Official Channel Management
콜백 설정
모니터링 대시보드
Viewing Guide for Resource Packages
Real-Time Monitor
개발 보조 툴
액세스 관리
Advanced Features
FAQ
uni-app FAQs
구매
SDK 관련 질문
계정 인증
사용자 정보 및 관계망
메시지
그룹
라이브 방송 그룹
닉네임 및 프로필 사진
협약 및 인증
Service Level Agreement
컴플라이언스 인증
IM 정책
개인 정보 보호 정책
데이터 개인 정보 보호 및 보안 계약
에러 코드
문의하기

Deleting Accounts

PDF
聚焦模式
字号
最后更新时间: 2025-10-23 14:43:55

Feature Description

The Chat trial edition and Chat Free Trial applications support account deletion by default. For other types of applications (such as: TRTC, whiteboard, Pro edition 、Pro Plus edition、Enterprise edition), it needs to be enabled in the console.
Note:
For specific package types, you can enter the application page in the Console, and click Application > Application Details > Plan to view.
Note:
After deleting an account, the user's data will be irrecoverable, please use this interface with caution.
When deleting an account, that user's contacts, profile, groups, sessions, and other data will also be deleted.
The Chat trial edition and Chat free trial edition support importing deleted UserIDs. For other types of applications (such as: TRTC, whiteboard, Pro edition 、Pro Plus edition、Enterprise edition), deleted UserIDs are not allowed to be re-imported within 3 months.

API Calling Description

Sample request URL

https://xxxxxx/v4/im_open_login_svc/account_delete?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json

Request parameters

The following table only describes the modified parameters when this API is called. For more information on other parameters, please see RESTful API Overview.
Parameter
Description
https
The request protocol is HTTPS, and the request method is POST.
xxxxxx
The country/region where your SDKAppID is located.
China: console.tim.qq.com
Singapore: adminapisgp.im.qcloud.com
Seoul: adminapikr.im.qcloud.com
Tokyo:adminapijpn.im.qcloud.com
Frankfurt: adminapiger.im.qcloud.com
Silicon Valley: adminapiusa.im.qcloud.com
Jakarta: adminapiidn.im.qcloud.com
v4/im_open_login_svc/account_delete
Request API
sdkappid
SDKAppID assigned by the console when the app is created
identifier
App admin account. For more information, please see the App Admin section in Login Authentication.
usersig
Signature generated in the app admin account. For details on how to generate the signature, please see Generating UserSig.
random
A random 32-bit unsigned integer ranging from 0 to 4294967295
contenttype
Request format. The value is always json.

Maximum calling frequency

100 calls per second

Sample request packet

{
"DeleteItem":
[
{
"UserID":"UserID_1"
},
{
"UserID":"UserID_2"
}
]
}

Request packet fields

Field
Type
Required
Description
DeleteItem
Array
Yes
Account array to delete. A single request can contain up to 100 accounts.
UserID
String
Yes
UserID of the account to delete

Sample response packet

{
"ActionStatus": "OK",
"ErrorCode": 0,
"ErrorInfo": "",
"ResultItem": [
{
"ResultCode": 0,
"ResultInfo": "",
"UserID": "UserID_1"
},
{
"ResultCode": 70107,
"ResultInfo": "Err_TLS_PT_Open_Login_Account_Not_Exist",
"UserID": "UserID_2"
}
]
}

Response packet fields

Field
Type
Description
ActionStatus
String
Request result. OK: successful; FAIL: failed
ErrorCode
Integer
Error code. 0: successful; other values: failed
ErrorInfo
String
Error information about the request failure
ResultItem
Array
Array of results for different accounts
ResultCode
Integer
Error code for the account. 0: successful; other values: failed
ResultInfo
String
Error information about the failure to delete the account
UserID
String
UserID of the account to delete

Error Codes

The returned HTTP status code for this API is always 200 unless a network error (such as error 502) occurs. The specific error code and details can be found in the response fields ErrorCode and ErrorInfo respectively. For public error codes (60000 to 79999), please see Error Codes. The following table describes the error codes specific to this API:
Error Code
Description
30006
An internal server error occurred while clearing contacts data. Try again later.
30007
Internal server timeout occurred while clearing contacts data. Try again later.
30008
A write conflict occurred while writing contacts data. You are advised to use the batch mode.
40006
An internal server error occurred while clearing profiles. Try again later.
70107
The UserID to delete does not exist. Make sure that the UserID is valid.
70169
Server timeout. Try again later.
70202
Server timeout. Try again later.
70402
Invalid parameters. Make sure that the required fields are all entered and the parameter settings meet the protocol requirements.
70403
Request failed. App admin permissions are required to perform this operation.
70500
Internal server error. Try again later.
71000
Failed to delete accounts. Only accounts of apps using the Chat Trial plan can be deleted. Your current app is using the Pro plan and therefore does not support deleting accounts.

API Debugging Tool

Use the RESTful API online debugging tool to debug this API.

References

Importing a Single Account (v4/im_open_login_svc/account_import)
Importing Multiple Accounts (v4/im_open_login_svc/multiaccount_import)
Invalidating Account Login States (v4/im_open_login_svc/kick)
Querying Account Online Status (v4/openim/query_online_status)

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈