Last updated: 27 Nov 2026
specialist-publisher: Bulk unpublishing
Documents can be unpublished in bulk from /bulk-unpublish.
Access
The page is only available to users with the gds_editor permission, who can
already unpublish any document one at a time through the UI. The navigation
link is hidden from everyone else.
How it works
- The user picks a document type and pastes a CSV with a
base_pathand analternative_pathcolumn. - Preview resolves every base path to a document and lists what will happen to each one. Nothing is changed at this point.
- Confirming queues
BulkUnpublishWorker, which re-checks the permission and re-validates the CSV before unpublishing anything.
A row with an alternative_path is redirected to that path. A row without one
is marked as gone. This matches unpublishing a single document through the UI.
Limitations
- Each run covers one document type, because every base path is checked against that document type's finder path.
- Only English documents can be unpublished.
- There is no report when the run finishes. Progress and any failed rows are written to the application logs, and failures are sent to Sentry.