idk if it was possible to make the deletion locally in the browser
It's definitely possible. It's just not something built-in browser APIs provide.
Personally, the only project I'm familiar with is exiftool, which is written in Perl. After a quick search I found this - https://github.com/lucasgelfond/exiftool-web.