Skip to content

Dangerous --clear #19395

@lynch730

Description

@lynch730

Summary

I lost files accidentally running "uv venv . --clear" instead of "uv venv --clear," deleting the project folder containing the virtual environment.

It seems like uv should issue a warning in such situations.

Platform

Windows 11

Version

0.11.13

Python version

Python 3.14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingA breaking changebugSomething isn't workingcliRelated to the command line interfacevirtualenvRelated to virtual environments

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions