A customer’s erasure request that collides with the 90-day log rule is a case where traffic data under Section 26 of the Computer-Related Crime Act falls under the PDPA Section 33 exception. You may refuse erasure for that data only. This is for DPOs and IT teams handling erasure requests, and shows how to separate retained logs from data to delete.
- Traffic data a provider must keep under Computer Crime Act Section 26 can be withheld from erasure under PDPA Section 33 paragraph two.
- The exception covers only that data and only while the duty lasts; profile and marketing data must still be erased.
- Erase without delay and within 90 days of receiving the request, backups included (2024 Erasure Notification, Clause 3).
- For anything you cannot erase yet, tell the requester why, as Clause 8 of the same Notification requires.
- Ninety days is a floor: once your declared retention period ends, PDPA Section 37(3) requires the logs to be deleted.
Picture this: you run an online platform where customers log in. On Monday morning a customer closes their account and emails support: "Delete all my data under PDPA Section 33." Support forwards it to IT. IT replies in one line: "We can't delete logs. The Computer Crime Act makes us keep them for 90 days." Three weeks later, the ticket is still open.
Both sides are half right, and you can get it wrong in either direction. Delete everything, and you may destroy data a service provider is obliged to keep under Section 26 of the Computer-Related Crime Act B.E. 2550 (2007), which carries a fine of up to 500,000 baht. Refuse the whole request on the strength of that Act, and data that has nothing to do with logs stays in your systems longer than the Personal Data Protection Act B.E. 2562 (2019) allows.
So the right answer is neither "delete" nor "refuse". It is to split the customer's data into pieces and ask, for each piece: which law says keep it, until when, and which system deletes it when that date arrives.
The customer wants erasure, the Computer Crime Act says retain. Who wins?
Traffic data that a service provider must keep under Section 26 beats the erasure request, but only for that data and only for the period the law requires. The reason sits inside the PDPA itself: Section 33 paragraph two disapplies the right to erasure where retention is needed "for compliance with the law".
Paragraph one shall not apply to the extent that such Personal Data retention is necessary for the purpose of freedom of expression, the purpose under section 24 (1) or (4) or section 26(5) (a) or (b), the purpose of establishment, compliance or exercise of legal claims, or defense of legal claims, or the purpose for compliance with the law.
Look at the words "to the extent that". The Section 33 exception attaches to the purpose of retention, not to the person. A single request from a single customer can therefore produce two piles: data you must erase now, and data you may keep for the time being. When the legal reason to keep a pile expires, so does the exception.
On the other side, Section 26 of the Computer-Related Crime Act says "not less than" ninety days. That figure is a floor, not a ceiling. The Act never says when to delete. The PDPA does, in Section 37(3).
A service provider shall maintain traffic data for a period not less than ninety days as from the date on which such data was entered into the computer system. If necessary, the competent official may, on case by case basis for particular cases and certain situations, order any service provider to maintain computer traffic data for a period longer than ninety days but not exceeding two years
What counts as "traffic data", and is your business a "service provider"?
Traffic data describes a communication, not its content: where it came from, where it went, when, for how long and over which service. Section 3 of the Computer-Related Crime Act defines it as
any data relating to communication by means of a computer system, indicating the communication’s origin, destination, route, time, date, size, duration, type of underlying service, or other information relating to communication of such a computer system.
In real systems this data tends to live in web server, firewall, VPN and authentication logs: source IP, connection time, destination, type of service. A customer's name, delivery address, purchase history or marketing segment is not traffic data under Section 3, even when it sits in the same database. That line is the whole game when you answer an erasure request.
The next question is whether you are a service provider at all. Section 3 recognises two kinds.
(1) a person who, either in his own name or in the name or for the benefit of another person, provides to other persons with access to the internet or the ability to communicate by other means through a computer system. (2) a person who stores computer data for the benefit of other persons.
The definition is broad, but the Section 26 retention duty does not fall on everyone automatically. Section 26 paragraph three leaves it to a Ministerial notification in the Government Gazette to set which types of service provider the duty applies to, how and from when. That notification is not in the legal corpus this article draws on, so before you conclude that your organisation must keep traffic data, read it against the services you offer to outsiders. Section 26 paragraph two, on data that identifies the user, runs on a different clock.
A service provider shall keep user’s data as necessary for the purpose of identifying the user from the first day of such a service and store such user’s data for a period not less than ninety days from its expiry date.
How far does the PDPA let you refuse an erasure request?
Only for data whose retention is still needed to comply with the law, and you must tell the requester why. Everything else has to go within the timeframe set by the 2024 Notification, with no room to negotiate.
PDPA Section 33 paragraph one grants the right to erasure on four grounds. After an account closure the usual ones are (1) the data is no longer necessary for its purpose, and (2) consent is withdrawn and the controller has no other legal ground to keep the data. Once a ground applies and no paragraph-two exception does, the PDPC's Notification on Criteria for the Deletion or Destruction of Personal Data B.E. 2567 (2024) sets a firm deadline.
the data controller shall carry out the action requested by the data subject without delay, but in any event not later than ninety days from the date of receipt of the request.
The same Notification closes the gap organisations forget most often: backups. Clause 3 paragraph two extends erasure to copies and backups and requires that nobody can recover the data by reasonably foreseeable means. If your backup system cannot delete one person's records straight away, Clause 4 requires you to make that data hard to collect, use or disclose, bar anyone from using it to make decisions about the person, and delete it as soon as you can.
The action under paragraph one must be carried out so as to cover personal data that has been copied or backed up as well (if any), and it must be ensured that no person is able, by any means that may reasonably be anticipated, to recover the personal data
For the pile you cannot erase yet because the retention duty is still running, silence is not an option. Clause 8 paragraph three of the 2024 Notification imposes a duty to explain.
In the case where the data controller is unable to comply with the request to exercise the right under paragraph one, the data controller shall notify the data subject who exercised the right thereof, together with the reasons.
The collision map: which law says keep, which says delete, for each kind of data?
The table splits a typical customer account into six pieces. Every period comes from the texts. Where a text sets no number of days, we say so rather than invent one.
| Data | Law that says keep | Law that says delete | How long | What to do |
|---|---|---|---|---|
| Traffic data: IP, connection time, origin, destination, service type | CCA s.26 para. 1 (if you are a type of service provider named in the Ministerial notification) | PDPA s.37(3), once your own retention period ends | At least 90 days from the day the data entered the system | Store separately, refuse erasure for this piece only with reasons, auto-delete at the end of the period |
| Data identifying the user, e.g. the account ID tied to the logs | CCA s.26 para. 2 | PDPA s.33 and s.37(3) | From the start of service until at least 90 days after the service ends | Shrink to the smallest set that still identifies the user, schedule deletion on the day the account closes |
| Traffic data an official has ordered you to keep longer | CCA s.26 para. 1 (case-by-case order) | PDPA s.37(3), once the order lapses | Beyond 90 days, up to 2 years, as ordered | Put a legal hold on the ordered set only, cite the order, set an end date |
| Profile, address, interests, marketing history | Not the CCA (other laws may require certain records; check separately) | PDPA s.33 and 2024 Erasure Notification cl. 3 | Without delay, no later than 90 days from the request | Erase or anonymise, backups included, then notify the requester under cl. 8 |
| Staff access logs to customer data (audit trail) | 2022 Security Measures Notification cl. 4(6)(d) | PDPA s.37(3) | No number of days is set | Set your own period with a rationale and enter it in the s.39(4) record |
| Copies and backups of everything above | Follows the source data | 2024 Erasure Notification cl. 3 para. 2 and cl. 4 | Follows the source data | If targeted deletion is not possible yet, put the data beyond use until it is overwritten, then delete |
Row five turns the problem inside out. A log kept to protect personal data becomes personal data itself: a line recording which employee opened which customer's file, and when, carries both names. The 2022 Notification requires such audit trails but sets no retention period, so the period is a business decision you must be able to justify.
(d) The provision of methods enabling retrospective verification concerning access to, alteration, correction or deletion of personal data (audit trails), appropriate to the methods and media used in the collection, use or disclosure of personal data.
Once 90 days have passed, must the logs be deleted immediately?
Not necessarily on day 91, but you need an end date that you have declared, and you must actually delete when it arrives. PDPA Section 37(3) does not wait for someone to ask. It requires a system that deletes on its own when the retention period ends.
put in place the examination system for erasure or destruction of the Personal Data when the retention period ends, or when the Personal Data is irrelevant or beyond the purpose necessary for which it has been collected, or when the data subject has request to do so, or when the data subject withdraws consent
You may keep logs longer than 90 days if you have a purpose and a legal basis you can explain, such as investigating security incidents. Here is the point legal teams tend to miss: unless another law or an official's order requires more than the minimum, the extra time is hard to defend as retention "for compliance with the law". And the Section 33 paragraph-two exceptions mention Section 24(1) and (4) but not Section 24(5), legitimate interests. An erasure request that lands during that extra window has to be assessed afresh.
This is where many systems go wrong. Logs are set to never expire because disk space is cheap and nobody asks why they are kept. Logs held past their period without a reason are personal data beyond what is necessary under Section 37(3), and if a breach ever happens, they are a large pile of data that should not have existed in the first place.
How do you design log retention that satisfies both laws?
Separate storage by legal reason, not by system convenience. Once every store has its own governing rule, answering an erasure request stops being a meeting-room argument and becomes a lookup.
- Keep traffic logs apart from the profile database. Use a separate store and refer to customers by user ID, not by name or email. When the profile is erased, the logs still do their Section 26 job without dragging profile data along.
- Label every store with its legal reason, for example "CCA s.26 para. 1, minimum 90 days" or "PDPA s.24(3), contract". That label is what your team uses to decide what can be deleted and when.
- Restrict access to logs to the people who need them, in line with the least-privilege principle in Clause 4(6)(a) of the 2022 Security Measures Notification, and record who looks.
- Delete on a rolling window counted from the day each record entered the system, because Section 26 paragraph one counts from that day, not from account closure.
- Give user-identification data its own clock. It runs for 90 days from the end of the service under Section 26 paragraph two. When a customer closes the account, cut the profile down to the identifying minimum and schedule its deletion that day.
- Use a legal hold for data an official has ordered you to keep beyond 90 days. The hold must cite the order, carry an expiry date and never spread to other data.
- Reach the backups. Rotate backup sets so old data is overwritten, and in the meantime make sure the backup copy cannot be pulled back into use for that customer, following the criteria in Clause 4 of the 2024 Erasure Notification.
- Write the retention period into your record of processing. Section 39(4) requires the retention period to be recorded. Log retention belongs there too, not only in a server config file.
Another way to shrink the problem is to stop collecting IP addresses where you do not need them. Clause 6(2) of the 2024 Erasure Notification names the IP address as an example of an indirect identifier, so every place that stores IPs is another place you must purge on schedule. Consent records for cookies are a good example: the AIPDPA cookie banner keeps its consent log without IP addresses.
How should you answer an erasure request, step by step?
The sequence below works for erasure requests that touch traffic data. Steps fixed by law cite the provision; steps that are our recommendation say so.
- Day 0Log the request and its date of receipt. The 90-day deadline in Clause 3 of the 2024 Erasure Notification runs from today.2024 Erasure Notification, cl. 3
- First week (recommended)Verify the requester, then sort their data using the collision map: what must be erased and what is still under a legal retention duty.PDPA s.33
- Without delayErase or anonymise profile and marketing data, including copies and backups.2024 Erasure Notification, cl. 3 para. 2
- Before day 90Tell the requester what has been erased and what cannot be yet, with the reasons, the provision relied on and the deletion date.2024 Erasure Notification, cl. 8
- When the log period endsThe system deletes the logs and the user-identification data on its regular cycle and records the disposal as evidence.PDPA s.37(3)
If the requester disputes your reasons, Section 33 paragraph four lets the data subject complain to the Expert Committee, which can order the controller to act. A reply that cites the exact provision and gives a firm deletion date is your best evidence at that stage. This is the part AIPDPA turns into a routine: a request portal with a deadline clock, retention rules, and disposal logs tied to your Section 39 record. See the demo account.
Common mistakes, and the provision each one runs into
If you are a service provider covered by the Ministerial notification, deleting traffic data before 90 days breaches Section 26 of the Computer-Related Crime Act, with a fine of up to 500,000 baht.
Section 33 paragraph two only covers retention needed to comply with the law. Profile and marketing data are not traffic data under Section 3.
The 90 days in Section 26 is a minimum, not a licence for indefinite retention. Section 37(3) requires deletion when the period ends or the data is no longer necessary.
Clause 3 paragraph two of the 2024 Erasure Notification extends erasure to copies and backups and requires that the data cannot be recovered.
Clause 8 paragraph three of the same Notification requires you to inform the requester, with reasons, when you cannot comply.
Meets Section 26 of the Computer-Related Crime Act and Sections 33 and 37(3) of the PDPA without having to pick a side.
Frequently asked questions
How long does Thailand's Computer Crime Act require logs to be kept?
Section 26 paragraph one requires a service provider to keep computer traffic data for at least 90 days from the day it entered the system. An official may order a specific provider to keep it beyond 90 days but not more than 2 years, case by case. Which types of provider are covered is set by a Ministerial notification under Section 26 paragraph three.
Can we refuse a PDPA erasure request because of the Computer Crime Act?
Only for data you must keep under Section 26, and only while that duty lasts, because PDPA Section 33 paragraph two exempts retention needed to comply with the law. Everything else must be erased, and you must give reasons for the part you cannot erase under Clause 8 paragraph three of the 2024 Erasure Notification.
How many days do we have to erase data after a request?
Clause 3 of the PDPC Notification on Criteria for the Deletion or Destruction of Personal Data B.E. 2567 (2024) requires action without delay and no later than 90 days from receipt of the request, covering copies and backups as well.
Can we keep logs for longer than 90 days?
Ninety days is a minimum. You can keep logs longer with a purpose and a legal basis, but you must set an end date and delete under Section 37(3). For the time beyond any legal duty, the compliance-with-law exception in Section 33 paragraph two may no longer be available.
Is an IP address in a log personal data?
Clause 6(2) of the 2024 Erasure Notification lists the IP address as an example of an indirect identifier whose identifying potential must be reduced when anonymising data. In other words, the Committee treats IPs as capable of contributing to identification, so logs containing IPs should be handled as personal data.
Law and sources
- Computer-Related Crime Act B.E. 2550 (2007), as amended by Act No. 2 B.E. 2560 (2017) — Section 3 · Section 26
- Personal Data Protection Act B.E. 2562 (2019) — Section 33 · Section 37 (3) · Section 39
- PDPC Notification on Criteria for the Deletion or Destruction of Personal Data, or Rendering It Non-Identifiable, B.E. 2567 (2024) — Clause 3 · Clause 4 · Clause 6 · Clause 8
- PDPC Notification on Security Measures of the Data Controller B.E. 2565 (2022) — Clause 4 (6)
Text in the "The text" boxes is copied word for word from AIPDPA's legal knowledge base, transcribed from the Royal Gazette and official documents; every edit is checked by the system against that base, character by character. English wording is an unofficial translation; the Thai text prevails. This article is general information, not legal advice for a particular case.

