Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help Wanted] [PLT-4843] Add CLI tool for deleting channels #6201

Closed
esethna opened this issue Apr 22, 2017 · 3 comments
Closed

[Help Wanted] [PLT-4843] Add CLI tool for deleting channels #6201

esethna opened this issue Apr 22, 2017 · 3 comments
Labels
Difficulty/2:Medium Medium ticket Tech/Go Server

Comments

@esethna
Copy link
Contributor

esethna commented Apr 22, 2017

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide, specifically for machine setup and for developer workflow.


Notes: Jira ticket

We have one for archiving channels, we need to add one for permanently deleting from the database.

Proposed changes:

  1. rename existing CLI command platform channel delete to platform channel archive to reflect what it does (delete the channel from UI but leave it in the database).
  2. create a new CLI command platform channel delete which permanently deletes a channel from the database (we have one for users and teams)

Channels can be specified by {team}:{channel} using the team and channel names or IDs.

Format: platform channel delete {channels}

Example: sudo ./platform channel delete myteam:mychannel

See related doc for archiving a channel from the CLI: https://docs.mattermost.com/administration/command-line-tools.html#platform-channel-delete
See a PR that added a CLI command for searching for users: #5918

@jasonblais jasonblais added Difficulty/2:Medium Medium ticket Tech/Go Server labels Apr 22, 2017
@jasonblais jasonblais changed the title [Help Wanted] [PLT-4843] Add CLI tools for archiving channels [Help Wanted] [PLT-4843] Add CLI tool for deleting channels May 16, 2017
@cpanato
Copy link
Contributor

cpanato commented May 16, 2017

I will take this one :)

@cpanato
Copy link
Contributor

cpanato commented May 17, 2017

PR: #6430

@jasonblais
Copy link
Contributor

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty/2:Medium Medium ticket Tech/Go Server
Projects
None yet
Development

No branches or pull requests

3 participants