Articles 8 and 9 Right to end processing, deletion and withdrawal of consent

Articles 8 and 9 give data subjects the right to end processing, have their data deleted or destroyed, and withdraw consent. Controllers need working erasure and retention processes with logs that prove them.

On this page

What Articles 8 and 9 ask controllers to prove about ending processing and deletion

When a data subject asks a controller to stop processing, erase their data or withdraw consent, the compliance lead has two jobs: act on the request and be able to show that the action happened everywhere it needed to. Article 8 of Law No. 27 of 2022 gives the data subject the right to end processing and to have personal data deleted or destroyed, in line with the law. Article 9 gives the data subject the right to withdraw the consent they gave for processing. The controller's side is set out in Articles 40 to 44, which require processing to end when the retention period expires or the purpose has been met, and require data to be deleted or destroyed on request. In practice, a request under Article 8 or 9 is a trigger that the controller must check against its own retention rules before it decides what to stop, what to erase and what it may lawfully keep.

The hard part is evidence. A deletion in the production database is only one location. Copies sit in backups, search indexes, analytics stores, logs, exports, support tickets and documents kept in a wiki or ticketing tool, and some copies may have been sent to processors or other third parties. Each location needs its own answer: was the data removed, was it blocked from further use, or is there a documented reason it must remain? Ask your backup platform owner how a single record is excluded or expired from backup sets, and whether restores can bring deleted data back. Ask your engineering team which systems hold the data and which deletion job covers each one. Confirm with your legal team which retention periods apply to each data category, because the law's retention rules set the boundary for what can be kept.

A practical evidence pack usually includes a retention schedule per data category, a request log showing when each Article 8 or 9 request arrived and what was done, deletion or destruction job records from each system, version history for any policy or schedule changed over time, and written confirmations from processors. Self-hosted platforms can help here: wiki version control records what changed, when and by whom, and role-based permissions in a documentation tool show who may approve retention rules. Backup tools such as Bareos keep a catalog of backed-up files and manage restore and archive jobs, and restic's check command can confirm that repository data is structurally consistent. Those tools do not decide what the law requires. Your controls and legal basis still have to be documented by your organization, and an independent assessor will test whether the records match what happened.

Which systems, data and third parties fall inside erasure and withdrawal scope

Erasure and withdrawal requests reach every place the controller stores or processes the affected personal data, not only the primary application database. The cards below cover the scope areas where a controller must decide what counts, and how each decision changes the work. Article 2 sets the law's reach, and foreign controllers should confirm with counsel whether their processing falls within it.

Production databases and applications

The primary systems of record are where Article 8 requests are most visible and where withdrawal of consent under Article 9 must stop processing first. The controller should decide which tables, fields and derived records count as personal data, and whether a request removes a record, anonymizes it or restricts it. Check that every application reading the data respects the withdrawn or deleted state, not only the front end.

Analytics copies and data warehouses

Reporting extracts, data warehouse loads and model training sets often copy personal data outside the source system. Each copy is processing in its own right, so the controller must decide whether it is refreshed from source, which removes deleted records on the next load, or kept as a separate snapshot that needs its own deletion path. Ask data teams to list every scheduled export and every dataset built from production data.

Backups and archives

Backups are the hardest scope area because restoring an old snapshot can reintroduce data that was already erased. The controller must decide whether backups are excluded until expiry, purged through rewrite, or restored with a deletion replay step. Confirm the backup catalog can identify where a given subject's data sits, and document the retention period that ends the exposure.

Bareos docs

Logs, search indexes and file stores

Application logs, full-text search indexes, document stores and uploaded files often hold personal data nobody lists in the processing record. The controller must decide which of these hold identifiers, whether they can be scrubbed by key, and how long they persist before rotation. Test a sample erasure against each store and record which ones could not be reached.

Consent records and withdrawal logs

The consent record is what proves the withdrawal happened and when processing stopped, so it cannot simply be deleted with the data it covers. The controller must decide what minimal record to keep, such as a subject reference, the consent version and the withdrawal timestamp, and set a retention period for it. Keep the change history of consent and withdrawal events in version-controlled documentation so the decision can be reviewed later.

XWiki version control

Processors and sub-processors holding copies

Cloud hosts, support tools, email providers and outsourced analytics firms may each hold a copy the controller does not operate directly. The controller must decide how deletion instructions reach each processor, what confirmation it requires, and how it handles a processor that cannot delete on request. Contracts should name the deletion process and the evidence the processor returns, and foreign processors should be reviewed with counsel against Article 2.

Every erasure request stops at a retention check before any data is destroyed

The flow starts when a data subject submits an erasure or withdrawal request, and the controller verifies identity and records the request in its log. A retention check then decides the outcome. If no retention period or legal basis still applies, the controller records the decision, erases data from primary stores and replicas, and instructs any processor to delete its copies. If a retention period or legal basis still applies, the request is refused or deferred, and the reason is logged and communicated. Backup copies are marked for expiry, and confirmation closes the log entry.

Erasure and withdrawal requests, from intake through retention check to closure.

How an assessor tests erasure and consent withdrawal

This table lists the steps an independent assessor typically takes to test deletion, end-of-processing and consent withdrawal, what each step samples, the evidence requested and where controllers commonly fall short. Read it as a preparation checklist for your own records, and treat the assessor's conclusion as coming from the independent auditor, not from this page or from DeployOpen.

Test stepWhat the assessor samplesEvidence requestedCommon findings
Trace requests from intake to closureA sample of erasure, destruction, end-of-processing and withdrawal requests across several channels and time periodsRequest tickets with timestamps, identity verification notes, assigned owner, actions taken and closure confirmation sent to the data subjectRequests logged in email or chat with no ticket, missing closure dates, or no link between the request and the systems changed
Check that processing stopped after withdrawalData subjects who withdrew consent, with the processing activities that relied on that consentProcessing records or job configurations showing the activity disabled, access revoked, and marketing or analytics lists updated after the withdrawal dateConsent flags updated in the CRM but batch jobs, third-party feeds or email lists still using the old record
Compare retention schedules against stored dataDatasets selected from the retention schedule, including ones whose purpose has ended or whose retention period has expiredApproved retention schedule with owners, data inventory mapped to it, and deletion or destruction logs for expired datasetsSchedules that exist on paper but no inventory, datasets with no assigned period, or expired data still held without a documented reason
Test whether deleted records reappear in backups or replicasRecords confirmed as deleted in production, then searched in backups, archives, reporting copies and data warehouse replicasBackup retention settings, restore test records, documented rules for how deleted data ages out of backups, and replica sync configurationDeleted records restored from an older backup with no remediation step, or replicas that were never included in the deletion process
Review deletion from search and logsSample of erased records checked in search indexes, application logs, caches and audit trailsIndex and log retention settings, purge jobs with run history, and a documented decision on what must be kept for security or legal reasonsSearch indexes and log stores not in scope of the erasure procedure, so personal data persists after the primary record is removed
Review processor instructionsProcessors and sub-processors that hold data subject to erasure or withdrawal, with their current contracts and instructionsSigned processing instructions covering deletion or return of data, completion certificates or confirmations from processors, and records of how the controller verified themContracts that do not state deletion duties, processors that never confirmed completion, or sub-processors missing from the instruction chain
Check how requests reach the controllerStaff handling intake across customer support, HR and product teamsIntake procedure, staff training records, routing rules and evidence that requests from all channels reach the same workflowRequests sent to a general inbox or a single employee and not routed to the people who run deletion

Implementing erasure, withdrawal and retention controls in sequence

This sequence turns the rights in Articles 8 and 9 into working controls: each step produces an artifact that shows where personal data sits, when it must stop being processed, how a request was decided and that the deletion actually happened.

  1. Inventory personal data stores and purposes

    The controller's privacy or data owner lists every system, database, file share, SaaS tool, log store and backup set that holds personal data, along with the purpose each store serves and the legal basis or consent behind it. Engineering confirms the list against cloud accounts and data flow diagrams, not only against what the business remembers. The step is done when the register names an owner for each store and no store lacks a stated purpose. The output is the personal data inventory, which every later step refers back to.

  2. Set retention periods and end-of-purpose triggers

    For each store and purpose, the controller records how long the data is kept and which event ends processing, such as a contract closing, a purpose being met or a consent being withdrawn. Legal and privacy staff confirm the periods against the controller's own obligations and any sector rules, since the researched facts for this topic do not set specific durations. The step is done when every inventory row has a retention rule and a trigger that engineering can implement. The output is the retention schedule.

  3. Build the request intake and decision record

    The controller creates a single intake channel for requests to end processing, delete or destroy data, and withdraw consent, and assigns an owner to each request. Each case is logged with the identity check performed, the request type, the stores in scope, the decision and the reason for any refusal or partial action. A wiki or document management system with version history can hold the procedure and decision templates so that changes to the process are traceable. The step is done when a test request moves from intake to a recorded decision without manual email trails. The output is the request register and decision record.

  4. Implement deletion or destruction per store

    Engineering writes a deletion procedure for each store in the inventory, covering the method used (delete, overwrite or destroy media), the scope (single record, subject-wide or purpose-wide), and any dependencies such as foreign keys, search indexes, caches and analytics copies. Each procedure is tested on non-production data before it is used on real records. The step is done when a sample subject can be removed from every in-scope store and a check query confirms no residual records. The output is the per-store deletion runbook and its test results.

  5. Handle backups with an expiry or restore-and-redelete rule

    Backups cannot always be edited record by record, so the controller defines how deleted data is handled in them: either a retention window after which backup copies expire, or a rule that any restore must re-apply pending deletions before the restored data returns to production. Backup software such as Bareos keeps a catalog of backed-up files and can restore from a chosen point in time, which helps identify what a restore would bring back. Verification jobs such as restic's check, run with read-data options where appropriate, help confirm that backup sets are intact. The step is done when the restore procedure includes a deletion re-application check. The output is the backup retention and restore-and-redelete standard.

  6. Connect consent withdrawal to processing stops

    The controller ties each consent record to the processing flows that depend on it, so that a withdrawal under Article 9 switches off marketing sends, profiling jobs, third-party sharing or other consent-based activities within the controller's own systems. Product and engineering confirm that the withdrawal flag is read by every consuming system, and that data collected under a withdrawn consent is no longer used for that purpose. The step is done when a test withdrawal stops each dependent flow and the change appears in the consent log. The output is the consent-to-processing mapping and the withdrawal test record.

  7. Propagate instructions to processors

    Where a processor or sub-processor holds data for an in-scope store, the controller sends written deletion or cessation instructions with the subject reference and deadline the contract sets, and asks for written confirmation. The controller keeps the processor list up to date with the systems each one touches. Contract terms that define how the processor returns or destroys data should be reviewed by counsel, because the researched facts for this topic do not set processor timelines. The step is done when every processor has acknowledged the instruction for a test case. The output is the processor instruction log and acknowledgments.

  8. Set up verification and deletion logs

    The controller builds a deletion log that records the request reference, the stores touched, the operator or automated job, the time, and the verification query result, and retains that log under its own retention rule. Periodic sampling checks that deleted subjects do not reappear in production, search or analytics copies. An independent reviewer or internal audit can then test the log against the decision record. The step is done when the log can answer, for any closed request, which systems were changed and what the check showed. The output is the deletion and verification log, which is the main evidence an assessor or regulator will ask to see.

Evidence that satisfies erasure and withdrawal duties

Articles 8 and 9 give data subjects the right to end processing, have their data deleted or destroyed, and withdraw consent. The controller must show that these requests were received, assessed and carried out, so each artifact below should tie back to a specific request or retention decision. An assessor will look for records that are dated, attributable and kept current between audits rather than policies written once.

Retention schedule

The retention schedule lists each category of personal data, the processing purpose it serves, the point at which processing must end, and the action taken at that point, such as deletion, destruction or anonymization. It is the document that tells staff and systems when Articles 40 to 44 duties to end processing are triggered. Check that every system holding personal data appears in it, that owners are named, and that the schedule is reviewed when a new purpose or system is added. A schedule that lists purposes without triggers is hard to test.

Request register

The request register logs every erasure, destruction, end-of-processing and withdrawal request with its receipt date, identity verification step, decision, actions taken and closure date. It shows the controller handled requests as a process rather than ad hoc. Keep it current by logging at intake, not after fulfillment, and by linking each entry to the tickets or change records that carried out the work. Assessors reject registers with missing closure dates or entries that cannot be traced to a system action.

Consent withdrawal record

Article 9 lets a data subject withdraw consent, so the controller needs a record showing when consent was withdrawn, through which channel, and which processing stopped as a result. The record should link to the original consent evidence so the two can be compared. Check that withdrawal is recorded in the same systems that gate processing, and that marketing and analytics feeds respect the flag. An assessor will reject a withdrawal logged in a mailbox while downstream systems keep processing.

Deletion or destruction log

The deletion or destruction log records what personal data was erased or destroyed, from which systems, on what date, under which request or retention rule, and by whom or by which job. Its purpose is to prove that the action happened, not only that it was requested. Keep it current by generating entries from the deletion jobs themselves where possible. Reject logs that record only a ticket closure, or that cannot show which data sets were removed.

Backup expiry procedure

Personal data often survives in backups after it is deleted from production, so the controller needs a documented procedure for how backup copies age out, are restored without reintroducing deleted records, and are destroyed at end of life. Bareos keeps a catalog of backed-up files and can restore from a chosen point in time, which helps confirm what a backup contains. restic check with read-data options can confirm stored backup data is intact. Confirm with your backup vendor how deleted records are excluded on restore before you rely on it.

Processor deletion confirmation

When a processor holds personal data for the controller, the controller must be able to show that the processor deleted or destroyed it when instructed. The evidence is a written instruction, the processor's written confirmation of completion, and a reference to the affected systems or data sets. Contracts should set how confirmations are returned and what happens if a processor cannot delete a copy. Assessors reject confirmations that are generic statements with no date, scope or instruction reference.

Which self-hosted open-source tools can produce erasure and retention evidence

Retention schedules, deletion procedures and erasure workflows are documents that change over time. An assessor asking how a retention period was set, or when a deletion step was altered, needs to see the prior versions and who approved them. XWiki is an open-source wiki that keeps every change to a page under version control, recording what changed, when and by whom. Users can compare any two versions and roll back to an earlier one, which suits retention schedules and procedures that are revised after a legal review or a system change.

  • Version history per page: Each edit to a retention schedule or deletion runbook is stored with its author and timestamp.
  • Version comparison: Teams can show the exact wording that changed between two approved versions.
  • Rollback: A reverted version is recorded as a change, so the reversal stays visible in the history.
  • Scope of the record: The history shows what the document said, not whether staff followed it, so pair it with deletion logs from the systems that hold the data.
  • Export and retention of the wiki itself: Confirm how the history is backed up and how long it is kept.

Ask the team to confirm how XWiki is deployed, who can edit the retention pages, and whether approvals are recorded outside the page history.

What meeting erasure and withdrawal duties costs in money and effort

This table lists the cost components of meeting the Article 8 and Article 9 duties, who is paid for each, whether it is one-time or recurring, and what moves it up or down. Use the last column as a checklist for requesting quotes, since no fixed prices or durations are supplied for this law. Open-source tools can remove license spend, but engineering and evidence time remain.

Cost componentOne-time or recurringWhat drives it up or downWhat to ask for in a quote
Data mapping and retention designOne-time, with periodic reviewNumber of systems holding personal data, number of purposes, and how well current records of processing already describe themScope of systems mapped, retention rule per data category, and who signs off each retention period
Engineering deletion and withdrawal pathsOne-time build, then maintenanceNumber of data stores, whether deletion must reach copies and analytics extracts, and whether consent is recorded in a central serviceDesign of deletion across each store, a consent withdrawal flow that stops downstream processing, and test cases for each path
Backup expiry and restore controlsOne-time design, recurring operationBackup retention length, backup tool capability to expire or exclude specific records, and how often restores are testedHow backups are aged out or excluded, how a restored system is prevented from reintroducing deleted data, and the restore test schedule
Processor and vendor contract changesOne-time, with renewalsNumber of processors that hold the data, and whether existing contracts already set deletion or return termsReview of each processor contract for deletion and return terms, and a written list of gaps to close before the contract renews
Request handling staff timeRecurringVolume of erasure and withdrawal requests, how many need manual checks for legal exceptions, and whether intake is automatedExpected handling steps per request, responsibilities by role, and what the tracking record will contain
Evidence upkeep (deletion logs and retention schedules)RecurringHow often retention rules change, how many systems generate deletion records, and whether logs are kept in a tamper-evident storeLog format, where logs are stored and for how long, and how records are reviewed each period
External testing and auditor samplingRecurring, usually per engagementScope of the sampled population, quality of the evidence trail, and whether testing covers backups and processorsWritten test scope, sample method, and the deliverables returned, with the independent assessor named separately from the implementation partner
Open-source tooling (license spend)Recurring operating cost, no license fee for listed toolsHosting, storage and operator time for versioned records, backup catalogs and integrity checksConfirm the license terms for each tool with its publisher and list which hosting and staff costs remain

Who does the erasure work: your team, a partner and the auditor

As the controller, your organization owns every decision that determines whether personal data is kept, ended or deleted. Your team sets the retention periods for each processing purpose, decides when a purpose has been met, and determines whether a request to end processing, delete data or withdraw consent is granted or refused. A partner can build the mechanism, but the reasons for each outcome must be recorded and defensible under your own accountability.

  • Retention decisions: Set and document retention periods per data category and purpose, with a named owner for each schedule.
  • Refusal approval: Define who may refuse a request, on what legal grounds, and who reviews refusals before the data subject is answered.
  • Procedure sign-off: Approve the written deletion, withdrawal and end-of-processing procedures and re-approve them when systems or purposes change.
  • Consent records: Keep the authoritative record of consent and withdrawal status that downstream systems must respect.
  • Operational follow-through: Confirm that deletion requests reach processors and that third parties holding copies are notified.

Before engaging anyone, confirm internally which decisions are documented in your own policies and who signs them.

Questions buyers ask about erasure, withdrawal and retention work

How much effort does erasure and withdrawal of consent work take?

The effort depends on how many systems hold personal data, how many of them can delete or stop processing without manual steps, and how many retention rules have to be written down first. A controller usually has to map where data flows, define a retention period for each category, build a way to stop processing when consent is withdrawn or the purpose is met, and keep a deletion log that shows what happened. Effort rises sharply when data sits in exports, analytics copies, support tickets and third-party tools, because each copy needs its own answer. Ask any provider to scope the work by system and data category before quoting, and to say which items are one-time setup and which recur as requests arrive.

Can our own team handle deletion and consent withdrawal in-house?

Often yes for a small number of systems, provided the team owns the data map, the retention schedule and the sign-off process. Engineers can build deletion jobs and logs, but the controller still needs legal input on which retention periods apply and which legal obligations override a deletion request. The harder part is consistency: a request must reach every copy, including backups and processor systems, and the same answer must be recorded each time. Teams that lack a clear owner for requests, or that have not inventoried their data stores, usually find the gaps during the first real request rather than before it.

How should backups be handled when data must be deleted?

Backups need a documented position, because restoring an old backup can bring deleted personal data back into production. Common approaches include excluding personal data from backups where feasible, recording deletion requests so they are re-applied after any restore, and setting backup retention so that copies expire on a known schedule. Backup tools can show job history and restore points, which helps evidence the process, but the controller must decide and document the rule. Engineers should test a restore after a deletion request to confirm the data does not return. Confirm with your backup platform exactly how it handles selective deletion, since that behavior varies by product and configuration.

Can a partner run erasure and retention work under a fixed scope?

Yes, most engagements of this type are fixed-scope, with systems, deliverables and timelines agreed in writing before work starts. A typical scope covers the data map for named systems, retention rules agreed with the client, deletion and stop-processing mechanisms, logging and a test of the full path from request to deletion. The client still owns its controls, approves the retention periods and makes the legal decisions. Ask for the scope to list which systems are included, which are excluded, what the client must provide, and what happens if new systems are added. The timeline depends on the agreed scope and environment.

What do legal and product teams need to provide for this work?

Legal teams need to define the retention periods, the purposes that end processing, and the exceptions that allow data to be kept after a request, such as obligations under other laws. Product teams need to explain how consent is collected and where it is stored, which features depend on each data category, and what a withdrawal should change in the user experience. Both teams should approve the request workflow and the wording of responses to data subjects. Without these decisions, engineering can build deletion mechanics but cannot know which data should go, which should stay and for how long.

Does DeployOpen issue compliance reports for deletion and retention?

No. DeployOpen prepares systems, controls and evidence, such as configuration, deletion logs and retention records, but only an independent auditor or assessor issues reports or certifications. The organization owns its compliance position and its legal decisions. Where a customer, regulator or auditor asks for proof, DeployOpen can help assemble the technical evidence and explain how the systems produce it. Confirm with any provider which artifacts will be delivered, who reviews them and how they are handed to your assessor.

How DeployOpen scopes and prepares erasure and retention evidence

DeployOpen helps controllers turn the right to end processing, have data deleted or destroyed, and withdraw consent into systems and records they can show. The work covers the self-hosted platforms that hold personal data, the retention rules those platforms enforce, and the logs that prove deletion happened. DeployOpen prepares these systems and evidence, while the organization owns its controls and an independent assessor reviews them.

How we scope

  • Engagements are fixed-scope, with the systems, data stores and deletion paths agreed in writing before work starts.
  • The written scope lists which platforms hold consent records, which retention periods apply and who approves each deletion request.
  • We confirm with the client which Article 8 and 9 requests the organization expects to receive and how they arrive.

How we build

  • We configure deletion and destruction workflows in the client's own infrastructure so that requests are carried out on each system holding the data.
  • Consent withdrawal is wired to stop processing downstream, and we test that the stop takes effect in each connected system.
  • Backup and archive copies are mapped so the client can explain how deleted data ages out of them, with restore and verify jobs tested.

How we hand over

  • Retention schedules, deletion procedures and request logs are documented in the client's wiki with version history and role-based access.
  • Evidence packs include deletion logs, consent withdrawal records and backup verification results for the assessor to review.
  • Testing results and fixes are delivered as a written report, with a retest to confirm the controls work as documented.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when the platforms or retention rules change.
  • Security testing of the request workflows can run before an assessment or after a significant change to the platform.
  • We confirm with the client's counsel and assessor which retention periods and evidence formats they will accept before the build is finalized.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.