Delete empty params on form submit

Hi, I’v got a form with turbo-frame param and frame has data: { turbo_action: ‘advance’ }, because I want to update the url to have form params (filters) there.
I need to delete some form fields on form submit, especially empty params like foo=‘’ or bar=[‘’] etc . Is it possible to do this for example in callback in stimulus controller like?

    this.element.addEventListener('turbo:submit-start', (event) => {

Basically