Hi @pjeaje
No, the above code will not delete images.
It is a demonstration of how you can hook into the update_value filter and delete it with code.
Please remember that this is a support forum, not a free development service. I can point you in the right direction with functions, docs and general help, but I will not write your custom code for you.
Thanks
E