optimize delete files