---
id: service-delete-all-records
title: "Delete all consent records"
description: "This endpoint is used to delete all consent records for an individual belonging to an organiation defined in the consent building block. This could be used, for example to exercise digital rights (Right to be forgotten) and deletes all consent records that shall not be retained and have a 'forgettable' data agreement. This may also delete an unsigned consent record, for instance in cases where the user exits the signing process."
sidebar_label: "Delete all consent records"
hide_title: true
hide_table_of_contents: true
api: eJztVttu20YQ/ZXBPtkATTlu+iIEQe3YLdQERREnaIHEgEfcEbnxcpfZHUpWBb71S/pp/ZJiltTVct6LVg8Sxd25nbmcWSlNsQimYeOdGqsPlYlATjfeOAYToY2kgT1ossQEaC0U3kVyDIEKH3SEmQ+ADozTZm50ixamZL0rjStFEh34UKIzKDZA08w40mAccEUbZdPWWC0SU+uLhxySI4VvrYYpJS+yZIgesW4siWJ6pFCYSKBNaRgtBFNWHOHkvfzKjSmJTOmZyZ0COj2EEY/GwRUyxEqOnGcRDsSYnBXRCucECJ+VqCRmnFr6rEAjI2AZiGpyPDhe4xLQxi1sDloXTSm69s32URkXGV1BgkqBkSIsKgqUEGojSdiGY/orWgSnJviCYsxVpnxDIYE70WqsIoW5Keg6Wb609n0fnspUgwFrYgpRjT+tlJGEV4SagsqUw5rUWP1+9qb37+rqbLLJ6ESrTAX62ppAWo05tJSpWFRUoxqvFC8bkY0cjCtVlx0U1VYPTK5VdyeqYiNmokhfnJ/Lz77M5TOFtlNlPbYaYlsIErPW2qXKhohEc9dl6uUx5VOU+mtahg0kRwRfiGDhHZNjecSmsaZIQI++RFG02sFgi84nRSH48MZrUln/fL1j/i5b4+WnX6hgSUyQFLLp8dhKb6E1jqlMXg4NoMYvz8+7I+qfpGNHRF0dCbyTz2HKPjpsufLB/EH6CTTf95j+R6GZOKbg0II0mrSmmDnAqMtUpKINhpep1S4b85bk8a7LVuqKMFC4bLlKbyRqLKUn1dB70Pes4FETV17auq/21MUip0ZDn4+2HTHqG0Vlqnetb/N976+p9oPnKlNtsDIDmJs4Ho001f4MG5ObMqDj3PjR/EKJx/s6bhnTcH9GTeyPj2i628JyK9XRJ3UNziY72L/Ijk+oy6EwU7Wpw+xc/jqBB1qClC85HopSxjLBHG1L4Gdpjt7v6bmH3gzUbUyjvwk0M4+kYWG4gvveR7iHE+e5n8sc0NgEQ4MFnWZAeZkfqB3DIPhq6dsgiJw90PL1fS5DcrcMVmqa/v3oQ42sxurn3z48jS3NOWD/QA4ajHHtXq9p8Fk4ZM8J2CCYWlIw7I2pTbtJ6pRUrXEzv+5tLFJvU41G0hvbpvGBf9ikdJsS89P21X4tbC8/6aONEJz8/edfp7JsINwuSJtY9axKj0WFrqREv3MKZjakE4baFxKcG00hhwkLUUaIZGdn0c8pkCkdGC1FwMtskBfShiJQeo02ZoCb9WGB1hInY9Fbo6HxGpiKynnrS0MxA3I4TTlHcLQAS3OyUlAyg9KgwqmxhpdJCbbsa2S5Xvi6sSYxfEpYCi9Q2doUT5ScISQGA2y1ScsF1OgcBWF4awpyMU29dRc0WFQEF/n5E8wXi0WO6Tj3oRwNsnH0bvLm5pfbmzOR6TLFhu1e8kB6R/uilUVm3V0yRvp8XZxfvMy/y1+IbOMj1+h2/Ll+dj88LOMd4vh/3fw3rpvDzGB65FFj0TipiFSCq4GcPq2X0DTD13lKK+Sa1yofWS6uVlOM9DHYrpPXX1sKiSczNceQ2rVnzTUNJEYzUQ60Gs/QRvpGfZ28H1aPU9hfQp+J4kF46Fs7cKIQNVaJFfvbMpUb3jl7sgx1uzx+ffPu5sONyhQOg39Leg+J9IYHCXR95JY76g/5r/dCvsWnoyKvpLPf0vL15np/8qzAhjH62wLOXdd1/wDT0/lJ
sidebar_class_name: "delete api-method"
info_path: docs/consent-management-individual-api/igrant-io-api-documentation
custom_edit_url: null
---

> **Build this with an AI coding agent.** Install the iGrant.io Agent Skills, then ask your agent to build the integration:
>
> ```bash
> npx skills add L3-iGrant/skills
> ```


import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1 className={"openapi__heading"}>Delete all consent records</h1>

<MethodEndpoint method={"delete"} path={"/service/individual/record"}></MethodEndpoint>



This endpoint is used to delete all consent records for an individual belonging to an organiation defined in the consent building block. This could be used, for example to exercise digital rights (Right to be forgotten) and deletes all consent records that shall not be retained and have a "forgettable" data agreement. This may also delete an unsigned consent record, for instance in cases where the user exits the signing process.

## Request

<details style={{"marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collapsed={false} open={true}><summary style={{}}><h3 className={"openapi-markdown__details-summary-header-params"}>Header Parameters</h3></summary><div><ul><ParamsItem className={"paramsItem"} param={{"in":"header","name":"X-ConsentBB-IndividualId","required":true,"schema":{"type":"string"},"description":"Individual ID"}}></ParamsItem></ul></div></details><div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

All consent records for individual deleted successfully

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div></div></TabItem><TabItem label={"400"} value={"400"}><div>

bad input parameter

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div></div></TabItem><TabItem label={"401"} value={"401"}><div>

Unauthorized

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>

Internal server error

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>
      