---
title: Delete AAPM Account
slug: single-connect-api-3-0-3/delete-aapm-account
description: Learn how to delete an account by sending a POST request using Curl command. This comprehensive code example encompasses all the essential elements such as URL, headers, and data to successfully execute the request. Optimize your coding skills with this h
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "IM570z-MeYi8Q6qXbbnKb",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/aapm/deleteAapmAccount",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\"dbId\": 963708}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "_XYFckWn3DwFcZ_lNUPr3",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/aapm/deleteAapmAccount \\\n     --header 'accept: application/json'"
        },
        {
          "id": "RR4WL01Z0nWnGE23Yoofj",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/aapm/deleteAapmAccount\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "c_e10MR7neKpYyBO5BWFb",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/aapm/deleteAapmAccount\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Nuvau0ANOab6_3_GGr2_P",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/aapm/deleteAapmAccount\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "_XYFckWn3DwFcZ_lNUPr3"
    },
    "results": {
      "languages": [
        {
          "id": "xqgC8DCpi_NVqCu07KlHP",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "xqgC8DCpi_NVqCu07KlHP"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}