how to remove a query arguments from all site urls?

i found this i think it’s the right way
i used :

add_filter('removable_query_args', function($args) {
    array_push($args, 'my_custom_arg');
    return $args;
});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)