Fix delete file failure issue

Fix the bug that deletion failed for single file