https://prefect.io logo
Title
c

Casey Green

08/30/2021, 8:38 PM
Is it possible to programmatically archive a flow? I found this but
mutation { archive_flow(...) { ... } }
doesn't appear to be valid anymore, I only see
delete
mutations.
k

Kevin Kho

08/30/2021, 8:39 PM
I believe delete will put it in an archive state. It’s a soft delete.
Actually one sec, let me confirm with the team.
c

Casey Green

08/30/2021, 8:42 PM
actually... seems like
archive_flow
is valid... but it's not working for me
doh, nevermind... I was passing the wrong flow ID. seems to have worked
👍 1
k

Kevin Kho

08/30/2021, 8:46 PM
Oh you are right, that is the right mutation. Delete seems to be actually remove it.