Last active
December 23, 2018 01:32
-
-
Save TomoyukiAota/05693e4f3e957ba9be343fc0486f3301 to your computer and use it in GitHub Desktop.
PowerShell profile for equivalent command of "rm -rf" in Bash.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rmrf { | |
<# | |
.DESCRIPTION | |
Deletes the specified file or directory. | |
.PARAMETER target | |
Target file or directory to be deleted. | |
.NOTES | |
This is an equivalent command of "rm -rf" in Unix-like systems. | |
#> | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$Target | |
) | |
Remove-Item -Recurse -Force $Target | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment