Remove Channels with Command line

Hi All,
Is it possible to delete the Channels on the server with the command line.
we have a test server and its listening to the same email boxes as in the production one…wich is causing trouble so it was stopped.
I dont know how to reach the website yet for the test server and remove the channels manually so i was thinking to remove them with command line so i can procced on my tests there

Hi @L2112. You need to open the Rails Console, and then you could list all channels with Channel.all. The channel that should be deleted could e.g. be deleted with the following code:

Danger zone, use at your own risk

Channel.find(X).destroy

X = numeric identifier of the channel to be deleted

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.