r/portainer • u/root-node • 8d ago
Delete Orphaned Stack With API
I had a one stack in a test environment that no longer exists. I delete the environment within Portainer, but the API reports the stack still exists.
If I do GET on /api/stacks/337?endpointId=1050 is returns the correct details, but a DELETE returns:
"message": "Unable to find the endpoint associated to the stack inside the database",
"details": "Object not found inside the database (bucket=endpoints, key=1050)"Is there anyway of cleaning up this stack, and maybe any other left over stuff?
2
Upvotes