No description
  • Go 58.1%
  • Makefile 19.3%
  • TypeScript 18%
  • JavaScript 4.2%
  • SCSS 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Felipe M. 03ca8cc0e8
All checks were successful
ci / test (push) Successful in 7m54s
ci / lint (push) Successful in 8m46s
ci / build (push) Successful in 10m29s
Authenticate the setup actions against the GitHub API
setup-go, setup-node and setup-bun resolve versions through
api.github.com. Anonymously that is sixty requests an hour for the
whole runner host, and the jobs started failing on it. GH_API_TOKEN is
a read-only GitHub token held as a Forgejo secret.

Where the secret is absent the input is empty and the action falls back
to an anonymous request, exactly as before.
2026-09-22 12:54:19 +02:00
.github/workflows Authenticate the setup actions against the GitHub API 2026-09-22 12:54:19 +02:00
assets Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
build Migrate from npm to bun 2026-07-25 18:59:34 +02:00
server Fix channel cleanup skipping posts across paginated deletes. 2026-07-30 15:58:41 +02:00
webapp Add automatic channel cleanup with unified modal UI. 2026-07-28 18:35:24 +02:00
.editorconfig Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
.gitattributes Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
.gitignore Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
.gitpod.yml Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
.golangci.yml Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
go.mod Add automatic channel cleanup with unified modal UI. 2026-07-28 18:35:24 +02:00
go.sum Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
LICENSE Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00
Makefile Give golangci-lint five minutes 2026-09-22 12:48:44 +02:00
plugin.json Add automatic channel cleanup with unified modal UI. 2026-07-28 18:35:24 +02:00
README.md Add Mattermost plugin for system-admin channel cleanup. 2026-07-25 18:46:39 +02:00

Cleanup Channel

A Mattermost plugin that lets system administrators remove all messages from a channel.

Features

  • Channel menu action: "Remove all messages" appears in the channel header menu for system administrators only.
  • Slash command: /cleanup-channel removes all messages from the current channel (system administrators only).
  • Defense in depth: Both the web app and server verify that the user is a system administrator before performing any cleanup.

Build

make dist

The plugin bundle is written to dist/com.fmartingr.mattermost-plugin-cleanup-channel-*.tar.gz.

Usage

  1. Upload and enable the plugin in System Console → Plugins → Plugin Management.
  2. As a system administrator, open a channel and use the channel header menu (⋯) → Remove all messages.
  3. Or run /cleanup-channel in the channel you want to clean up.

Both actions ask for confirmation before deleting messages.

Development

make deploy

Requires a local Mattermost server configured for plugin development. See the Mattermost plugin developer guide.