Last active
February 4, 2022 15:17
-
-
Save mvidalgarcia/59b0b07afa73b4bb8b2c5c1bc37f7b41 to your computer and use it in GitHub Desktop.
Delete all your workflows in REANA cluster.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from reana_db.models import User, Workflow | |
from reana_db.database import Session | |
email = "[email protected]" | |
me = User.query.filter_by(email=email).one() | |
for wf in me.workflows: | |
for wr in wf.resources: | |
Session.delete(wr) | |
Session.delete(wf) | |
Session.commit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /var/reana/users/<USER_UUID>/workflows/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment