fix(entities): system files removed for all entities on delete

Fixes #7130
Merge pull request #7636 from beck24/7130-files-delete

fix(entities): system files removed for all entities on delete