Closed dmayo3 closed 2 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
No Coverage information
0.0% Duplication
@dmayo3 This definitely seems handy... What are your thoughts on a --all
flag to specify all APIs? Or would that be a bit destructive? Or --apis=all
or something :thinking:
@RobLoach I'd imagine it would need to clean out the policies as well because policies are tied to APIs, so I would expect --all
to wipe out both
I personally can't see any problem with adding such a flag, if you're going to use a delete --all
command you'd expect it to be destructive
Thank you for the suggestion @dmayo3 . We are planning to implement delete API command in another CLI we have so this PR will be closed.
I've added this command to enable APIs and policies to be explicitly deleted.
Although the
sync
command can delete these resources, there's no control over what exactly it deletes. This is fine if you want a Tyk environment to exactly mirror a Git branch state with no extraneous resources, but this doesn't work if you want to share a single Tyk environment with different sets of APIs managed independently.