Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-ItemSafely actually executes Remove-Item #28

Open
ZhaoXiangXML opened this issue Sep 28, 2024 · 2 comments
Open

Remove-ItemSafely actually executes Remove-Item #28

ZhaoXiangXML opened this issue Sep 28, 2024 · 2 comments

Comments

@ZhaoXiangXML
Copy link

On my computer the Remove-ItemSafely actually removes the file.

Also the help command indicates Remove-ItemSafely is actually just Remove-Item.

> Remove-ItemSafely -?

NAME
    Remove-Item

SYNTAX
    Remove-Item [-Path] <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>] [-Recurse] [-Force] [-Credential <pscredential>] [-WhatIf] [-Confirm] [-UseTransaction] [-Stream
    <string[]>]  [<CommonParameters>]

    Remove-Item -LiteralPath <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>] [-Recurse] [-Force] [-Credential <pscredential>] [-WhatIf] [-Confirm] [-UseTransaction]
    [-Stream <string[]>]  [<CommonParameters>]


ALIASES
    ri
    rm
    rmdir
    del
    erase
    rd


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.
        -- To view the Help topic for this cmdlet online, type: "Get-Help Remove-Item -Online" or
           go to https://go.microsoft.com/fwlink/?LinkID=113373.


n> Get-RecycledItem -?

NAME
    Get-RecycledItem

SYNOPSIS
    Get all items from the recycle bin, optionally filtered by the parameters


SYNTAX
    Get-RecycledItem [[-OriginalPath] <String>] [[-SortingCriteria] <String>] [[-Descending]] [[-Top] <Int16>] [[-SelectorScript] <ScriptBlock>] [<CommonParameters>]

    Get-RecycledItem [[-OriginalPathRegex] <String>] [[-SortingCriteria] <String>] [[-Descending]] [[-Top] <Int16>] [[-SelectorScript] <ScriptBlock>] [<CommonParameters>]


DESCRIPTION
    Get all items from the recycle bin, optionally filtered by the parameters


RELATED LINKS

REMARKS
    To see the examples, type: "get-help Get-RecycledItem -examples".
    For more information, type: "get-help Get-RecycledItem -detailed".
    For technical information, type: "get-help Get-RecycledItem -full".



@bdukes
Copy link
Owner

bdukes commented Sep 30, 2024

The permanent deleting is is a known issue, see #18 (if you specify any of these arguments, it will not use the recycle bin: DeletePermanently, Filter, Include, Exclude, Recurse, Force, Credential).

Because of this (poor) design, its documentation is just a forward of Remove-Item's documentation (I didn't realize it would show that the module name was Remove-Item).

I've gone ahead and unlisted the module.

@ZhaoXiangXML
Copy link
Author

I'm using -Force -Recurse to remove folders, I guess that is the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants