[{"id":"e7854979-5a27-4814-81ce-e0a38c549031","thread_id":"774d20ab-ead3-4b0a-8492-392fd5137121","created_at":"2025-12-12T10:37:49Z","branch_list":["00000000-0000-4000-0000-000000000000","4c122bd0-a2a4-4a4a-bbf5-56c643611e6c","3d5ff3cc-f023-4046-bae8-f143ae6bf6f6","37c60655-8276-4a4f-a8ab-575734139b6e"],"state":"done","prompt":"renovate what happens when I delete a branch?","references_html":"<ol data-ref-list>\n \n <li>\n <a href=\"https://github.com/renovatebot/renovate/issues/2391\" >Renovate deleted a PR branch that contained additional ...</a>\n <span class=\"__domain-name\">github.com</span>\n <div class=\"trigger\" tabindex=\"0\">\n <span class=\"contribution\" style=\"background: linear-gradient(to right, var(--primary-70) 33%, transparent 33%)\">33%</span>\n <div class=\"tooltip top end tooltip_base tw-auto\">\n This percentage indicates how much a source has contributed to the answer.\n </div>\n </div>\n </li>\n \n <li>\n <a href=\"https://github.com/renovatebot/renovate/discussions/13975\" >Quick question re: recreating vs. deleting branch ...</a>\n <span class=\"__domain-name\">github.com</span>\n <div class=\"trigger\" tabindex=\"0\">\n <span class=\"contribution\" style=\"background: linear-gradient(to right, var(--primary-70) 23%, transparent 23%)\">23%</span>\n <div class=\"tooltip top end tooltip_base tw-auto\">\n This percentage indicates how much a source has contributed to the answer.\n </div>\n </div>\n </li>\n \n <li>\n <a href=\"https://github.com/renovatebot/renovate/issues/1865\" >Deleting merged branch before renovate actives causes branch to be ...</a>\n <span class=\"__domain-name\">github.com</span>\n <div class=\"trigger\" tabindex=\"0\">\n <span class=\"contribution\" style=\"background: linear-gradient(to right, var(--primary-70) 22%, transparent 22%)\">22%</span>\n <div class=\"tooltip top end tooltip_base tw-auto\">\n This percentage indicates how much a source has contributed to the answer.\n </div>\n </div>\n </li>\n \n <li>\n <a href=\"https://github.com/renovatebot/renovate/issues/7636\" >Lockfile maintenance branch not deleted automatically · Issue #7636...</a>\n <span class=\"__domain-name\">github.com</span>\n <div class=\"trigger\" tabindex=\"0\">\n <span class=\"contribution\" style=\"background: linear-gradient(to right, var(--primary-70) 22%, transparent 22%)\">22%</span>\n <div class=\"tooltip top end tooltip_base tw-auto\">\n This percentage indicates how much a source has contributed to the answer.\n </div>\n </div>\n </li>\n \n</ol>\n","references_md":"[^1]: [Renovate deleted a PR branch that contained additional ...](https://github.com/renovatebot/renovate/issues/2391) (33%)\n[^2]: [Quick question re: recreating vs. deleting branch ...](https://github.com/renovatebot/renovate/discussions/13975) (23%)\n[^3]: [Deleting merged branch before renovate actives causes branch to be ...](https://github.com/renovatebot/renovate/issues/1865) (22%)\n[^4]: [Lockfile maintenance branch not deleted automatically · Issue #7636...](https://github.com/renovatebot/renovate/issues/7636) (22%)\n","reply":"<details><summary>Searched with Kagi<p></p>\n<ul>\n<li>renovate delete branch behavior</li></ul></summary><br>\nSources (10):<br>\n<strong>Quick question re: recreating vs. deleting branch ...</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/discussions/13975\" target=\"_blank\">https://github.com/renovatebot/renovate/discussions/13975</a><br>\nFeb 03, 2022 Renovate does not keep any state to know what branches were deleted, and just looks at current state of repo, right? So in both cases I should ...\n\n<p><strong>Renovate deleted a PR branch that contained additional ...</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/issues/2391\" target=\"_blank\">https://github.com/renovatebot/renovate/issues/2391</a><br>\nAug 15, 2018 Renovate started running right after the PR closure as it triggers a webhook. It sees that the branch exists but the PR is closed. Normally ...</p>\n<p><strong>Bot is removing 'branchPrefix' matching branches when not onboarded...</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/issues/15569\" target=\"_blank\">https://github.com/renovatebot/renovate/issues/15569</a><br>\nMay 15, 2022 I never saw this working. Describe the bug. When changing the onboarding request (renovate.json) and adding a line \"branchPrefix\": \"feature/\" in the renovate/configure branch, next time the renovate bot passes it will remove all feature branches. Expected behaviour: do nothing outside the renovate/configure branch when not onboarded.</p>\n<p><strong>Lockfile maintenance branch not deleted automatically · Issue #7636...</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/issues/7636\" target=\"_blank\">https://github.com/renovatebot/renovate/issues/7636</a><br>\nNov 06, 2020 What Renovate type, platform and version are you using? I'm using the hosted app on GitHub Describe the bug When merging a lockfile maintenance PR, the renovate/lock-file-maintenance branch is not deleted.This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior.</p>\n<p><strong>Renovate Errors When MR Close and Branch is Deleted</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/issues/2771\" target=\"_blank\">https://github.com/renovatebot/renovate/issues/2771</a><br>\nNov 08, 2018 Close a Merge Request it opens and delete the backing branch. Expected behavior. If a MR is closed, it should ignore the branch, and shouldn't ...</p>\n<p><strong>Deleting merged branch before renovate actives causes branch to be ...</strong><br>\n<a href=\"https://github.com/renovatebot/renovate/issues/1865\" target=\"_blank\">https://github.com/renovatebot/renovate/issues/1865</a><br>\n If the person merging the PR happens to hit delete before the webhook starts Renovate it gets stuck. The only way I found to get it working again is to restore the branch and let Renovate kick in again.</p>\n<p><strong>GitHub - val-town/vt: CLI for the Val Town platform</strong><br>\n<a href=\"https://github.com/val-town/vt\" target=\"_blank\">https://github.com/val-town/vt</a><br>\nNov 07, 2025 If you don't want this behavior, then you can delete them and add deno.json and .vtignore to the .vtignore (the .vtignore will respect itself being ...</p>\n<p><strong>Renovate bot cheat sheet - the 11 most useful customizations</strong><br>\n<a href=\"https://www.augmentedmind.de/2023/07/30/renovate-bot-cheat-sheet/\" target=\"_blank\">https://www.augmentedmind.de/2023/07/30/renovate-bot-cheat-sheet/</a><br>\nJul 26, 2021 This Renovate bot cheat sheet helps teams who adopt Renovate with customizing the most common (and useful) configuration options.</p>\n<p><strong>Automatic dependency updates - a Renovate Bot introduction</strong><br>\n<a href=\"https://www.augmentedmind.de/2023/07/30/renovate-bot-introduction/\" target=\"_blank\">https://www.augmentedmind.de/2023/07/30/renovate-bot-introduction/</a><br>\nJul 13, 2021 In this Renovate bot introduction I explain the benefits of automated dependency updates, how the Renovate bot works, how to operate/run the bot yourself (if necessary), and how you can configure the bot’s behavior for each repository.Renovate always uses the most recent renovate.json5 file located at the root of the repository’s default branch. You can change this behavior via the configuration options useBaseBranchConfig and baseBranches.</p>\n<p><strong>Configuration Options - Renovate Docs</strong><br>\n<a href=\"https://docs.renovatebot.com/configuration-options/\" target=\"_blank\">https://docs.renovatebot.com/configuration-options/</a><br>\nDec 01, 2025 Read the Renovate 42 changelog on GitHub . As of 2025-11-18, the Mend Developer Platform is now running Renovate 42.x.</p>\n</details><p>When you delete a branch in Renovate:</p>\n<ul>\n<li><strong>Renovate does not maintain state information about deleted branches</strong>. It operates based on the current state of the repository<sup class=\"trigger\"><a href=\"https://github.com/renovatebot/renovate/discussions/13975#:~:text=Renovate%20does,I%20should\">2</a><span class=\"tooltip top center citation\"><a href=\"https://github.com/renovatebot/renovate/discussions/13975#:~:text=Renovate%20does,I%20should\"><span class=\"source\"><img alt=\"\" src=\"/proxy/favicons?c=lQ30-cxV_E2Vdyqb6hrbuYgId7qu7hecjO7o1T7aqQDFc7XpcLttL1Ryala-GNHJye4yFtnhZ7b3uL_uDtQjv6zCLPFWusm4lvLb6SKPCfI%3D\"> github.com</span><b>2. Quick question re: recreating vs. deleting branch ...</b></a><span class=\"passage\">Renovate does not keep any state to know what branches were deleted, and just looks at current state of repo, right? So in both cases I should ...</span></span></sup></li>\n<li><strong>If you delete a branch associated with an open Pull Request (PR)</strong>, Renovate will detect that the branch exists but the PR is closed. Normally it would delete the branch after PR closure<sup class=\"trigger\"><a href=\"https://github.com/renovatebot/renovate/issues/2391#:~:text=Renovate%20started,closed.%20Normally\">1</a><span class=\"tooltip top center citation\"><a href=\"https://github.com/renovatebot/renovate/issues/2391#:~:text=Renovate%20started,closed.%20Normally\"><span class=\"source\"><img alt=\"\" src=\"/proxy/favicons?c=lQ30-cxV_E2Vdyqb6hrbuYgId7qu7hecjO7o1T7aqQDFc7XpcLttL1Ryala-GNHJye4yFtnhZ7b3uL_uDtQjv6zCLPFWusm4lvLb6SKPCfI%3D\"> github.com</span><b>1. Renovate deleted a PR branch that contained additional ...</b></a><span class=\"passage\">Renovate started running right after the PR closure as it triggers a webhook. It sees that the branch exists but the PR is closed. Normally ...</span></span></sup></li>\n<li><strong>If you delete a merged branch before Renovate processes it</strong>, Renovate can get stuck trying to process a non-existent branch<sup class=\"trigger\"><a href=\"https://github.com/renovatebot/renovate/issues/1865#:~:text=If%20the,in%20again.\">3</a><span class=\"tooltip top center citation\"><a href=\"https://github.com/renovatebot/renovate/issues/1865#:~:text=If%20the,in%20again.\"><span class=\"source\"><img alt=\"\" src=\"/proxy/favicons?c=lQ30-cxV_E2Vdyqb6hrbuYgId7qu7hecjO7o1T7aqQDFc7XpcLttL1Ryala-GNHJye4yFtnhZ7b3uL_uDtQjv6zCLPFWusm4lvLb6SKPCfI%3D\"> github.com</span><b>3. Deleting merged branch before renovate actives causes branch to be ...</b></a><span class=\"passage\">If the person merging the PR happens to hit delete before the webhook starts Renovate it gets stuck. The only way I found to get it working again is to restore the branch and let Renovate kick in again.</span></span></sup></li>\n<li><strong>For lockfile maintenance branches</strong>, if you merge the PR but the branch isn't automatically deleted, this is considered a bug<sup class=\"trigger\"><a href=\"https://github.com/renovatebot/renovate/issues/7636#:~:text=What%20Renovate,current%20behavior.\">4</a><span class=\"tooltip top center citation\"><a href=\"https://github.com/renovatebot/renovate/issues/7636#:~:text=What%20Renovate,current%20behavior.\"><span class=\"source\"><img alt=\"\" src=\"/proxy/favicons?c=lQ30-cxV_E2Vdyqb6hrbuYgId7qu7hecjO7o1T7aqQDFc7XpcLttL1Ryala-GNHJye4yFtnhZ7b3uL_uDtQjv6zCLPFWusm4lvLb6SKPCfI%3D\"> github.com</span><b>4. Lockfile maintenance branch not deleted automatically · Issue #7636...</b></a><span class=\"passage\">What Renovate type, platform and version are you using? I'm using the hosted app on GitHub Describe the bug When merging a lockfile maintenance PR, the renovate/lock-file-maintenance branch is not deleted.This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior.</span></span></sup></li>\n</ul>\n<p><strong>Key behavior</strong>: Renovate expects to manage branch cleanup as part of its workflow. Manual deletion before Renovate processes changes can lead to unexpected behavior or errors. It's generally better to let Renovate handle branch cleanup automatically after PR closure.</p>","md":"When you delete a branch in Renovate:\n\n- **Renovate does not maintain state information about deleted branches**. It operates based on the current state of the repository[^2] \n- **If you delete a branch associated with an open Pull Request (PR)**, Renovate will detect that the branch exists but the PR is closed. Normally it would delete the branch after PR closure[^1] \n- **If you delete a merged branch before Renovate processes it**, Renovate can get stuck trying to process a non-existent branch[^3] \n- **For lockfile maintenance branches**, if you merge the PR but the branch isn't automatically deleted, this is considered a bug[^4] \n\n**Key behavior**: Renovate expects to manage branch cleanup as part of its workflow. Manual deletion before Renovate processes changes can lead to unexpected behavior or errors. It's generally better to let Renovate handle branch cleanup automatically after PR closure.","profile":{"id":null,"name":null,"model":"hermes-4-405b-thinking","model_name":"Hermes-4-405B (reasoning)","model_provider":"nousresearch","model_input_limit":1000000,"recommended":false,"model_info":"\n\n<div class=\"heading\">\n <div class=\"left\">\n \n \n \n <svg class=\"model-icon icon-xs\" data-model=\"hermes-4-405b-thinking\">\n <use href=\"#icon-nousresearch\"/>\n </svg>\n <h3>\n \n <span class=\"model-provider\">Nous Research</span>\n \n <span class=\"model-name\">none</span>\n </h3>\n </div>\n\n \n <a href=\"/settings?p=custom_assistant&id=none\">\n <svg class=\"icon-sm edit-icon\" aria-hidden=\"true\">\n <use href=\"#icon-pencil\" />\n </svg>\n </a>\n \n</div>\n\n\n<hr />\n<ul>\n \n <li>\n <h4>\n Cost\n </h4>\n <span>\n \n \n \n\n \n \n \n\n <div class=\"score\" aria-label=\"Moderate\">\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-cost --medium\"></div>\n \n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-cost --medium\"></div>\n \n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-cost --medium\"></div>\n \n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-cost --medium\"></div>\n \n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-cost --medium\"></div>\n \n \n </div>\n</span>\n </li>\n <li>\n <h4>\n Quality\n </h4>\n <span>\n \n \n \n\n \n \n \n\n <div class=\"score\" aria-label=\"Rated 3 out of 5\">\n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-bubble\"></div>\n \n \n </div>\n</span>\n </li>\n <li>\n <h4>\n Speed\n </h4>\n <span>\n \n \n \n\n \n \n \n\n <div class=\"score\" aria-label=\"Rated 3 out of 5\">\n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"unfilled-bubble\"></div>\n \n \n </div>\n</span>\n </li>\n <li>\n <h4>\n Privacy\n </h4>\n <span>\n \n \n \n\n \n \n \n\n <div class=\"score\" aria-label=\"Rated 5 out of 5\">\n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n \n \n <div aria-hidden=\"true\" class=\"filled-bubble\"></div>\n \n \n </div>\n</span>\n </li>\n <li class=\"divider\" aria-hidden=\"true\"></li>\n <li>\n <h4>Last updated</h4>\n <span class=\"date\">\n \n \n 2025-08-26\n \n \n </span>\n </li>\n \n</ul>\n","model_provider_name":"Nous Research","internet_access":true,"personalizations":true,"shortcut":null,"is_default_profile":false},"metadata":"<li>\n <span class=\"attribute\">Model</span>\n <span class=\"value\"><i class=\"icon-xs mr-2\"><svg><use href=\"#icon-nousresearch\"></use></svg></i>Hermes-4-405B (reasoning)</span>\n</li>\n<li>\n <span class=\"attribute\">Version</span>\n <span class=\"value\">NousResearch/Hermes-4-405B</span>\n</li>\n<li>\n <span class=\"attribute\">Speed (tok/s)</span>\n <span class=\"value\">38</span>\n</li>\n<li>\n <span class=\"attribute\">Tokens</span>\n <span class=\"value\">2,549</span>\n</li>\n<li>\n <span class=\"attribute\">Cost / Total ($)</span>\n <span class=\"value\">0.005 / 0.005</span>\n</li>\n<li>\n <span class=\"attribute\">End to end time (s)</span>\n <span class=\"value\">8.21</span>\n</li>\n\n","documents":[]}]