Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API to delete multiple/all rules #2746

Open
younes199511 opened this issue Mar 28, 2024 · 2 comments
Open

REST API to delete multiple/all rules #2746

younes199511 opened this issue Mar 28, 2024 · 2 comments

Comments

@younes199511
Copy link

What would you like to be added/modified:
I propose the addition of a new endpoint that accepts a list of rule IDs to be deleted in a single API call. This would allow users to perform bulk deletions without having to make multiple individual requests, thereby reducing network overhead and improving system performance.

Why is this needed:
As a user of ekuiper, I often find the need to efficiently delete multiple rules through a REST API. Currently, the system only supports the deletion of individual rules through the API. To enhance the usability and efficiency of ekuiper, it would be beneficial to introduce a new REST API endpoint that allows for the simultaneous deletion of multiple rules.

@ngjaying
Copy link
Collaborator

You can loop through rules to send delete request. Actually, if we implement that, it is almost the same, just to loop and delete. So I doubt if this is needed.

@younes199511
Copy link
Author

Thank you for your answer.
I think it can be very helpful to reduce http trafic and avoid exceeding rate limit of eKuiper itself (if configured) or API Gateway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants