Fixed the script - whitelisted additional files needed for the delete functionality