updated to delete files