For UK directors closing a solvent company
Selling company data before strike-off: DS01 and bona vacantia
Updated
Whatever a company still owns when it is dissolved passes to the Crown. The strike-off rules on what a company did in the three months before it applies are why the order of a sale and a DS01 application is a question for your accountant, not for this page.
What dissolution does to the records
When a company is dissolved, all property and rights vested in or held on trust for it immediately before its dissolution are deemed bona vacantia, and pass to the Crown, the Duchy of Lancaster or the Duke of Cornwall. Records and data the company owns are among that property, so value left in them at dissolution is lost to the company's shareholders.
The three-month rule for a voluntary strike-off
An application to strike a company off must not be made if, at any time in the previous three months, the company has changed its name, traded or otherwise carried on business, made a disposal for value of property or rights it held for disposal for gain in the normal course of its business, or engaged in any other activity outside the exceptions the section lists.
Source: UK Companies Act: when a strike-off application must not be made
GOV.UK's guide to striking off a company, whose application is made on form DS01, puts the same rule as a company that has not traded or sold off any stock in the last 3 months.
Source: GOV.UK: strike off your company from the Companies Register
Whether a sale of the company's records counts as trading, as a disposal the section catches, or as an activity its exceptions allow is not something this page decides. Agree the order of the sale and the application with your accountant before you sign either.
If the company cannot simply be struck off
A company with debts it cannot pay, or with assets worth realising properly, is usually wound up instead; see selling company data before liquidation for who decides once a liquidator is involved.
Read against the Companies Act's own text and Companies House's guidance. This page quotes the rule; it does not tell a director to sell and then apply.