add delete file api.