Hello, the pactflow Web UI allows to delete a cont...
# pactflow
t
Hello, the pactflow Web UI allows to delete a contract. Is there a way to delete contracts through the API as well. For example after a merge into the main branch? What is the best way to clean up old contracts?
👋 1
m
Yes, you can delete contracts in the same way. Issuing a
DELETE
to the contract URL will do that, so you could definitely do that
We have plans in PactFlow to auto-delete branches that are merged etc. Note we also automatically clean up some old data (similar to https://docs.pact.io/pact_broker/administration/maintenance). Feel free to vote on the SCM integration you use here (https://github.com/pactflow/roadmap/projects/1 - e.g. Github, gitlab, bitbucket) or create an issue if you have another one.
🙌 1
Out of interest, what are the use cases you have in mind that you would like to manage - is it just merging of PRs?
t
Thank you for the explanations. Yes, merging of PRs is would be my main use case.
thankyou 1