Finish the implementation of delete files