question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't seem to delete channel I created

See original GitHub issue
var cid;

rtm.on(RTM_EVENTS.CHANNEL_CREATED,function(ev){
    cid=ev.channel.id;                                   //created
    };

 web.channels.create('name_of_channel');

then i want to delete it on the first message it receives…

rtm.on(RTM_EVENTS.MESSAGE,function(m){
    web.channels.unarchive(m.channel);                   //not deleted
    web.channels.unarchive(cid);                         //not deleted
    });

web.channels.remove and delete don’t exist.

How can I delete a channel that this api created?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 6, 2016

Ok:

  • the API method you’re looking for is channels.archive There isn’t a way to permanently delete a channel via the API, but you can as a team admin, you can see the docs to do so here: https://get.slack.help/hc/en-us/articles/213185307-Deleting-a-channel
  • the link you were running into is in JSDoc format, which means you need to take the part to the left of the pipe character | The part after the pipe character is how the link will display when JSDoc is rendered
  • unarchive is the opposite of archiving; it would restore a channel that you’ve archived back to being usable again
0reactions
AkiTensaicommented, Sep 27, 2017

As the “Primary Owner”, I can’t delete the channel that was originally #general. I have since renamed it to something else, have a new #general, and don’t see an option to promote a new channel to the undeletable general channel. The help article doesn’t state that #general is not delete-able.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Permanently Delete a YouTube Channel
Your browser can't play this video. Learn more. Switch camera.
Read more >
Unable to delete a private channel - Microsoft Community Hub
Hi I seem to be unable to delete a private channel after having created a private channel for testing. The channel has no...
Read more >
Delete or hide your YouTube channel - Google Support
Hide your channel temporarily · Sign in to YouTube Studio. · From the left sidebar, select Settings "" · Select Channel and then...
Read more >
How do I delete a channel in slack? - G2
Click on the Wheel icon in the top right-hand of the channel then click "Additional options..." and then "Archive Channel.".
Read more >
How to Delete a YouTube Channel (with Pictures) - wikiHow
1. Open YouTube's advanced settings page. Go to https://www.youtube.com/account_advanced in your web browser. This will open the advanced settings page for ... 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found