ekuiper icon indicating copy to clipboard operation
ekuiper copied to clipboard

REST API to delete multiple/all rules

Open younes199511 opened this issue 1 year ago • 2 comments

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.

younes199511 avatar Mar 28 '24 08:03 younes199511

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.

ngjaying avatar Mar 28 '24 10:03 ngjaying

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

younes199511 avatar Mar 28 '24 11:03 younes199511