Disable Slack notifications programmatically

We use docker to deploy Metabase for both dev and prod environments. Our prod env is backed by Postgres. Sometimes we take a snapshot of the prod database and run dev against that snapshot. This works great, except our Pulses still send Slack notifications. Is there a way to disable these notifications? I tried using the environment variable to override the Slack key, but it seemed to have no effect.


Hi @alana
So you’re saying that you are defining MB_SLACK_TOKEN to an invalid token, but Metabase still uses the token stored in the application database?
Please post “Diagnostic Info” from Admin > Troubleshooting.
Alternatively is to delete slack-token from the table setting in the application database, or simply just block outgoing connections to *.slack.com

Yes that is correct.

Thank you for the suggestions, I will use one of these alternatives. :smiley:

Here is the diagnostic info:

  "browser-info": {
    "language": "en",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15",
    "vendor": "Apple Computer, Inc."
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.7+10",
    "java.vendor": "AdoptOpenJDK",
    "java.vendor.url": "https://adoptopenjdk.net/",
    "java.version": "11.0.7",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.7+10",
    "os.name": "Linux",
    "os.version": "4.19.121-linuxkit",
    "user.language": "en",
    "user.timezone": "GMT"
  "metabase-info": {
    "databases": [
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "12.3 (Debian 12.3-1.pgdg100+1)"
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.2.8"
    "run-mode": "prod",
    "version": {
      "date": "2020-12-17",
      "tag": "v0.37.4",
      "branch": "release-x.37.x",
      "hash": "e0d5287"
    "settings": {
      "report-timezone": "US/Pacific"