Cloudflare Tunnels not deleting

When removing a Cloudflare tunnel via the API and it successfully deletes it, however when I use the API to list all tunnels it still returns old unused tunnels that aren’t active anymore. How do I go about cleaning up because the API results are becoming larger?

I don’t believe there is a way to permanently delete tunnels. You can filter for undeleted tunnels, though.

Hi @Cyb3r-Jak3

Do you perhaps know if you can filter during the API call so that the results are filtered?

Add a query string of is_deleted=false to your API request.

I think this will do the trick since I can’t delete old tunnels that aren’t on the web interface anymore. Thanks for the assistance @Cyb3r-Jak3

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.