I recently have installed a script that didn't work properly, and now I want to remove it. The script allowed the pi to boot when pin 5 was connected to ground with a resistor, but it doesn't work and prevents the pi from booting. I managed to ssh into the console but im not sure what to do from here. I can access the file by typing python /home/pi/scripts/shutdown.py.

  • 1
    What script? What instructions were you following? Please edit this information into your question. – joan Apr 7 '19 at 21:34

Once you've sshed into the console, you can type rm /home/pi/scripts/shutdown.py to remove the file. Type man rm to learn about the rm command.

| improve this answer | |
  • 1
    If you just want to prevent it from running and might like to try to change it, you can optionally just "move" the script to a different location so it won't execute via the mv command. e.g. mv <path/filename> <new-location or new-name> – Tim Campbell Apr 7 '19 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.