Export and purge assessments before uninstall

Problem/motivation

Uninstalling AI Disclosure deletes every assessment, suggestion and audit row, and nothing keeps a copy. Today the only guards are the audit uninstall validator and a warning in the documentation.

Proposed resolution

  • A confirmation page that counts the assessments, suggestions and audit rows that would be lost.
  • A CSV export of all three before anything is deleted.
  • A batch that removes the field data, so the uninstall does not have to wait for cron.
  • Importing an export back is a later step and stays out of this issue.

User interface changes

A new confirmation page, linked from the message that blocks the uninstall.

AI Compliance

🤖 Generated with the help of an LLM, reviewed and approved by me before posting.