Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Recursive Delete-If-Empty? #273

@mahmoud

Description

@mahmoud

Chatting with @hynek tonight, seems like there's a market for a Delete/delete flag to remove the value at a path if it's empty, and its parent if it's empty, and so on.

Kind of like rm -r (or rmdir, in that it fails/stops if the container isn't empty).

(Tangentially related, remap can do this for a whole object, but it's not very convenient for recursively deleting a specific path.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions