remove the files on layer delete.

it will help against #1741 but will not solve in case someone reset the db and don't delete the files.