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

Remove a drain from DB #576

Closed
curzolapierre opened this issue Jun 29, 2020 · 0 comments · Fixed by #577
Closed

Remove a drain from DB #576

curzolapierre opened this issue Jun 29, 2020 · 0 comments · Fixed by #577
Assignees

Comments

@curzolapierre
Copy link
Member

curzolapierre commented Jun 29, 2020

The delete command will remove by default a drain from the application and related addons.

$ scalingo --app app-1 log-drains-remove tcp+tls://logs.papertrailapp.com:10303
-----> The log drain: tcp+tls://logs.papertrailapp.com:10303 has been deleted

Requests made on endpoint:

  • DELETE /apps/app-1/log_drains/drain_id
  • DELETE /apps/app-1/addons/addon-1/log_drains/drain_id
  • DELETE /apps/app-1/addons/addon-2/log_drains/drain_id

It is also possible to delete a drain from a specific addon

$ scalingo --app app-1 --addon ad-1234567-1123 log-drains-remove tcp+tls://logs.papertrailapp.com:10303
-----> The log drain: tcp+tls://logs.papertrailapp.com:10303 has been deleted

Or just delete a drain for the application:

$ scalingo --app app-1 --only-app log-drains-remove tcp+tls://logs.papertrailapp.com:10303
-----> The log drain: tcp+tls://logs.papertrailapp.com:10303 has been deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant