Delete Bundle Users API
Bulk delete multiple user accounts by providing a list of user IDs
Delete Bundle Users API
Delete multiple user accounts in a single operation. Efficiently remove groups of users by providing their IDs.
Bulk Delete
Remove multiple users at once.
Efficient
Single API call for batch.
Complete Removal
All user data deleted.
Endpoint Overview
/graphqlDelete multiple users at once by providing a list of user IDs. All selected users and their associated data will be permanently removed.
Request Parameters
ids[Int!]!RequiredArray of user IDs to delete.
GraphQL Mutation
mutation deleteBundleUsers($ids: [Int!]!) {
deleteBundleUsers(ids: $ids) {
success
deletedCount
message
}
}Variables:
{
"ids": [12345, 12346, 12347, 12348, 12349]
}HTTP Request:
curl -X POST https://api.orbnet.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
-d '{
"query": "mutation deleteBundleUsers($ids: [Int!]!) { deleteBundleUsers(ids: $ids) { success deletedCount message } }",
"variables": {
"ids": [12345, 12346, 12347, 12348, 12349]
}
}'Response
{
"data": {
"deleteBundleUsers": {
"success": true,
"deletedCount": 5,
"message": "5 users deleted successfully"
}
}
}{
"data": {
"deleteBundleUsers": {
"success": true,
"deletedCount": 3,
"message": "3 of 5 users deleted. 2 users not found."
}
}
}{
"errors": [
{
"message": "At least one user ID must be provided",
"path": ["deleteBundleUsers"],
"extensions": {
"code": "INVALID_INPUT"
}
}
],
"data": null
}Use Cases
Account Cleanup
Remove inactive or test accounts.
Expired Users
Delete expired subscription users.
Fraud Accounts
Remove identified fraudulent accounts.
System Migration
Clean up during system changes.
Best Practices
Verify IDs
Double-check the user ID list.
Backup First
Export data before bulk deletion.
Batch Size
Keep batch sizes reasonable.
Document Action
Log deletion for audit trail.
Deletion Process
Gather IDs
Verify List
Execute
Confirm
Related Endpoints
Bulk Deletion Warning
This operation permanently deletes all specified users and their data. Double-check your ID list before executing, as this action cannot be undone.
Find Users to Delete
Query your user list to identify accounts for deletion.