+(923) 111 88 4444
TecniForge, 79/5-L, Sahiwal 57000

WhatsApp – Delete WhatsApp Account

  • Home
  • Docs
  • WhatsApp – Delete WhatsApp Account

WhatsApp – Delete WhatsApp Account

Delete WhatsApp Account. Requires “delete_wa_account” API permission.GET https://androidapi.net/api/delete/wa.account

Parameter #

FieldTypeDescription
secretStringThe API secret you copied from (Tools -> API Keys) page
uniqueStringWhatsApp Unique ID

Success Response Format #

FieldTypeDescription
statusNumberList of Codes
200 = Success
messageStringResponse message
dataArrayArray of data

Error Response Format #

NameTypeDescription
statusNumberList of Codes
400 = Invalid parameters
401 = Invalid API secret
403 = Access denied
500 = Something went wrong
messageStringResponse message
dataArrayArray of data

PHP Sample #

<?php

  $apiSecret = "API_SECRET"; // your API secret from (Tools -> API Keys) page
  $accountUnique = "90cf7d40a467d5f40a39fca222c216449cb9abee73e5e2b0b321060c2ae06a8fa9e45486";

  $cURL = curl_init();
  curl_setopt($cURL, CURLOPT_URL, "https://androidapi.net/api/delete/wa.account?secret={$apiSecret}&unique={$accountUnique}");
  curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($cURL);
  curl_close($cURL);

  $result = json_decode($response, true);

  // do something with response
  print_r($result);

Python Sample #

import requests

# your API secret from (Tools -> API Keys) page
apiSecret = "API_SECRET"
accountUnique = "90cf7d40a467d5f40a39fca222c216449cb9abee73e5e2b0b321060c2ae06a8fa9e45486"

r = requests.get(url = "https://androidapi.net/api/delete/wa.account", params = {
    "secret": apiSecret
    "unique": accountUnique
})
  
# do something with response object
result = r.json()

Successful Response #

{
  "status": 200,
  "message": "WhatsApp account has been deleted!",
  "data": false
}

Error Response #

{
  "status": 400,
  "message": "Invalid Parameters!",
  "data": false
}

Leave A Comment