[ticket/12778] Automatically delete files on update

https://tracker.phpbb.com/browse/PHPBB3-12778
PHPBB3-12778