If your deleteBy method doesn't work as expected, it may be failing silently.
In general, you can troubleshoot your issue by copying the exact payload you are using and testing it with a filter. If nothing is returned, nothing is deleted.
Here are some cases to watch out for:
- you are using a numeric filter like "YourAttribute=YourValue" for a value that is actually a string (use "YourAttribute:YourValue" instead
- attributesForFaceting aren't enabled on the relevant attribute