Scotland's chief medical officer told colleagues to delete WhatsApp messages "at the end of every day" during the pandemic, the COVID inquiry has heard.
Professor Sir Gregor Smith's testimony has added to a growing political storm around the retention of informal messages by senior decision-makers and their advisers during the handling of COVID.
Former first minister Nicola Sturgeon and her deputy John Swinney did not retain messages, while the national clinical director, Professor Jason Leitch, said deleting messages was a "pre-bed ritual".
A message from Sir Gregor in a group chat in July 2021 with other government medical advisers was shown at the hearing in Edinburgh on Monday.
Deputy chief medical officer, Professor Graham Ellis, said "hope this isn't FOI-able?" in reference to freedom of information in an exchange where he appeared to joke about having "my own supply" of cannabis.
Responding, Sir Gregor said: "Delete at the end of every day..."
Asked about the comments by Jamie Dawson KC, counsel to the inquiry, Sir Gregor said: "Scottish government advice at this time was not to retain information for longer than it was necessary.
More on Covid
COVID anniversary: Day of reflection across UK to mark five years since start of pandemic

COVID scars remain in the tight-knit communities of Welsh Valleys
