Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8866597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:49:40+00:00 2026-06-14T16:49:40+00:00

I want to delete the cygwin folder and some other folders through powershell terminal

  • 0

I want to delete the cygwin folder and some other folders through powershell terminal or command prompt but I get access denied I tried to change the folder permission but get access denied as well.

I’ve tried


Remove-Item C:\cygwin

or even
Remove-Item -Recurse -Force C:\cygwin

any solution? isn’t there a way using the terminal to delete anything and everything you want no excuses.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:49:41+00:00Added an answer on June 14, 2026 at 4:49 pm

    ‘Access denied’ type errors are generally permissions issues, so make sure the user you’re running the terminal as has appropriate permissions (run as Admin if needed).

    Otherwise, to completely ‘no questions asked’ delete something, you’ll need to use CMD as there are some quirks about using .NET that makes PowerShell useless in certain situations. However, I use the following function from inside of PowerShell that uses CMD to delete anything.

    function die ($arg1) {
        $isDir=(gi $arg1).psIscontainer
        $path="\\?\$((gi $arg1).fullname)"
    
        cmd.exe "/C del /f/s/q `"$path`""
        if($isDir){
            cmd.exe "/C rmdir /s/q `"$path`""
        } else{
            "Not a dir"
        }
    }
    

    This can then be invoked with die C:\MyEvilDir.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this distribution: I want delete new group folder, but its impossible!!!! I
I want to delete an entry from my Database but it says it can't
I want to delete a number of jobs from a q. The command to
What is wrong here? I want delete an item from an array, but it
I want to delete some files with python scripts (while using Windows). I have
I have html code in which are many divs, and want delete some divs
Good morning, please, I have dependent GridView and I want delete row, but it
I want delete several row together with foreach , but i have this output
I want to delete the folder C:\Users\username\AppData\Roaming\appname when the users uninstall the application appname
I want to delete all files inside a folder called data with php and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.