See lines 75 – 88┬áin admin-editprofile to try this on your own site

 

Learn more – PHP unlink