I can't unschedule pg:backups schedules for deleted databases

Issue

I recently deleted a Heroku Postgres database, and just realized that I had a daily backup schedule. When I try to delete the schedule, I get the following error:

$ heroku pg:backups unschedule HEROKU_POSTGRESQL_ORANGE_URL
! Unknown database: HEROKU_POSTGRESQL_ORANGE_URL. Valid options are: DATABASE_URL, HEROKU_POSTGRESQL_CYAN_URL

How can I delete it?

Resolution

Unfortunately, it's not possible to delete a scheduled backup after you deleted the database.

However, the next time we try to run this scheduled backup, we will delete such invalid schedules automatically, so no actions are required on your end.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support