How long to retain a matter file: a policy without automatic time limits
How to distinguish archiving, legal retention, blocking and destruction without turning civil or tax limitation periods into one universal rule.

There is no single number answering how many years a law firm should keep all its files. A client original that must be returned, an invoice, a copy needed to defend a claim and data with no remaining purpose are different categories. Applying five years to everything can lead both to premature destruction and to keeping personal data without justification.
This guide proposes a policy organised by document class and retention purpose. It draws on the GDPR, blocking under Spain's data protection legislation and several civil, tax and commercial limitation rules. It does not replace review of applicable territorial or sector-specific regimes, or turn the limitation period for a claim into a duty to retain every complete file for that period. Inventory, review and recording steps are organisational recommendations. Explanations of Spanish sources are this publication's own translations.
Closing, returning and retaining are separate decisions
Ending the engagement does not mean all documents must be destroyed that day. Nor does it mean every document should remain indefinitely accessible to every employee. First separate client documents, the firm's financial records and copies justified by outstanding duties or claims. Article 48(7) of the General Statute of the Spanish Legal Profession prohibits withholding client documentation and permits a copy to be retained.
Permission to keep a copy is not permission for unrestricted later use of its personal data. Record which originals were returned, which copy is kept and why. Where a folder contains several categories, its closure date does not determine each document's retention period. Separating documents prevents a financial record from automatically extending general access to every item of personal data in the matter.
The GDPR rule is storage limitation
Article 5(1)(e) requires identifiable data to be kept no longer than necessary for the purposes of processing. Its exceptions for archiving in the public interest, research and statistics have their own conditions. An ordinary law firm archive does not become public-interest archiving simply because it is called historical. Retention needs a purpose and justification, not merely spare cloud storage.
Article 17 provides for erasure where data are no longer necessary, among other grounds, and contains exceptions where processing remains necessary, including compliance with a legal obligation or establishing, exercising or defending legal claims. Those exceptions do not mean any imaginable claim allows everything to be kept forever. The policy should identify the particular need, relevant data and when that need will be reassessed.
Blocking is not an infrequently used folder
Article 32 of Organic Act 3/2018 requires the controller to block data when rectification or erasure is required. Blocking means identifying and reserving data with technical and organisational measures preventing processing, including viewing, except for making them available to courts, prosecutors or competent public administrations to pursue possible liabilities arising from processing during their limitation period. The data must then be destroyed.
An archive label that leaves the content accessible to staff therefore does not establish blocking. Blocked data cannot be reused for marketing lists or an internal knowledge search. Where the system cannot block data or adapting it requires disproportionate effort, paragraph 4 provides for a secure copy evidencing authenticity, the blocking date and absence of subsequent alteration. AEPD report 2019-0148 explains the scope of that reservation rather than equating blocking with immediate physical deletion.
Civil limitation periods identify a purpose, not a whole archive
Under Spain's common Civil Code, article 1964(2) provides five years for personal actions without a special period, from when performance can be demanded, not an administrative closure date selected by the firm. Article 1967 provides three years for certain actions, including payment of lawyers' fees and expenses on its terms. These are different claims: recovering fees is not the same as every possible professional liability claim.
Article 1973 also provides for interruption by court action, an extrajudicial creditor demand or acknowledgment of the debt. A policy counting automatically from the last invoice can overlook an interrupting event or an action under another regime. Establish the applicable law, type of claim and actual calculation. This guide prescribes neither universal five-year retention of lawyers' files nor removal of territorial civil-law differences.
Why four tax years do not settle every question
Article 66 of the General Tax Act provides four years for the rights it lists: assessing tax, collecting debts and requesting or obtaining specified refunds and reimbursements. Article 67 supplies different starting points and article 68 deals with interruption. Four years from when someone closes a folder is therefore not the legal rule.
Article 66 bis adds an important qualification. It governs verification of tax bases, amounts or deductions offset, applied or carried forward, with the ten-year period and conditions it specifies. Paragraph 3 preserves certain duties to produce returns and accounting records when open tax periods are checked. It does not make every record subject to a uniform ten-year archive, but it prevents using four years as an automatic order to delete any tax support without examining its function.
Commercial documents have a separate rule
Where article 30 of the Commercial Code applies, businesses must keep books, correspondence, documentation and supporting records concerning their activity in order for six years from the last book entry, subject to general or special provisions. Ceasing activity does not remove that duty; the article also addresses death and company liquidation.
This does not automatically classify every individual lawyer as a commercial trader or extend the provision to every document used in a client's defence. Identify the subject and documents falling within its scope. The coexistence of a commercial obligation, a need to defend claims and data protection rules requires separation of categories and access permissions, not blind selection of the shortest or longest period for the entire folder.
Turn the rules into a usable table
As an operational recommendation, each policy row can state document category, purpose, legal basis, custodian, event starting the calculation, period or review criterion and action at the end. A row for invoices need not have the same access permissions as one for medical information provided in litigation. If a claim or official request is pending, record how it affects destruction of the relevant documents.
Before deleting, check for originals to return, applicable special obligations or events altering the calculation. This guide does not develop anti-money-laundering retention or other sectoral regimes: where the matter falls within them, their analysis must be added rather than displaced by these general periods. Recording the review prevents a destruction calendar from becoming an uncontrolled automatic process.
Document the end of the cycle too
An orderly process identifies what was destroyed, when, who authorised it and the method, without reproducing the very personal data intended for removal in the destruction record. Where backups or external providers are involved, establish how the decision affects backup and restoration cycles. Deleting a shortcut while daily-use duplicates remain in other folders is not enough.
The matter-closing checklist places the work at the end of the engagement. The matter-opening checklist supports classification from the beginning. The approval matrix helps decide who reviews exceptions and who executes deletion. These tools complement rather than replace the legal justification for retention.
Dates and sources
GDPR arts. 5(1)(e) and 17; Organic Act 3/2018 art. 32; common Civil Code arts. 1964, 1967 and 1973; General Tax Act arts. 66, 66 bis, 67 and 68; Commercial Code art. 30; General Statute art. 48(7); AEPD report 2019-0148. Read 17 November 2026. There is no universal recommendation to keep every complete matter file for five, six or ten years.
Sources
- https://www.boe.es/doue/2016/119/L00001-00088.pdf
- https://www.boe.es/buscar/act.php?id=BOE-A-2018-16673
- https://www.boe.es/buscar/act.php?id=BOE-A-1889-4763
- https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186
- https://boe.es/buscar/pdf/1885/BOE-A-1885-6627-consolidado.pdf
- https://www.aepd.es/documento/2019-0148.pdf
- https://www.boe.es/buscar/act.php?id=BOE-A-2021-4568