Skip to content

The file was not deleted correctly #7522

Open
@saber-wang

Description

@saber-wang

Bug Description

 WARNING  - local - Attempted to delete non-existent file 8a2e7b4c-b6ee-4271-b7d6-a3a4bda47e1e/ca33da24-3fb1-466d-92f1-bf5f7888ffcc.txt in flow                        local.py:110
                             8a2e7b4c-b6ee-4271-b7d6-a3a4bda47e1e. 

The reason is that the file path was used instead of the file name when deleting

await storage_service.delete_file(flow_id=str(current_user.id), file_name=file.path)

Reproduction

Upload files and delete them on the UI, observe the local file deletion situation

Expected behavior

Correctly delete files

Who can help?

No response

Operating System

liunx

Langflow Version

1.3.2

Python Version

3.12

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions