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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users