# Unable to access astropy folder in Linux In order to delete files

**URL:** <https://community.openastronomy.org/t/unable-to-access-astropy-folder-in-linux-in-order-to-delete-files/923>\
**Category:** Astropy\
**Created:** [March 1, 2024, 12:49pm UTC](https://community.openastronomy.org/t/unable-to-access-astropy-folder-in-linux-in-order-to-delete-files/923 "2024-03-01T12:49:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://community.openastronomy.org/u/Steve)\
**Post date:** [March 1, 2024, 12:49pm UTC](https://community.openastronomy.org/t/unable-to-access-astropy-folder-in-linux-in-order-to-delete-files/923/1 "2024-03-01T12:49:56Z")

</div>

Hi

I’ve tried to install astropy onto a raspberry pi zero, to read fits files.  
It’s installed a astropy folder etc and is in Python 2.7 folder

Thonny uses Python 3.0. Therefore no astropy module.

I’ve decided astropy it’s too complicated to use for me and would like to remove it

I can see the astropy folder using ‘find’ in linux and all the astropy files.

And can find an individual file “conftest.pay” using the find command

But can not change to it using cd astropy

How do I access the astropy folder in order to delete the files

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![dhomeier](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/dhomeier/32/65_2.png) [@dhomeier](https://community.openastronomy.org/u/dhomeier)\
**Post date:** [March 7, 2024, 7:08pm UTC](https://community.openastronomy.org/t/unable-to-access-astropy-folder-in-linux-in-order-to-delete-files/923/2 "2024-03-07T19:08:36Z")

</div>

As a note, Python 2.7 has been deprecated (meaning getting neither bug nor security fixes) for almost 4 years and is no longer supported by Astropy (i.e. wherever you installed it from you must have got a very old version).  
Python 3.0 to my knowledge has never been in production use, so in case you might ever want to give Astropy another try, you should try to setup an installation with at least Python 3.9 or whatever is the latest version you can get an installation for on your Pi.

As for how to (safely) remove the installed folder, that is not really an Astropy-specific or even very Python-related question. It seems if your machine only has a Python 3.x installation, there should exist no `python2.7/site-packages` at all, but to find out more about the Unix shell on your system and how to use its commands, you’d best ask in a Raspberry Pi forum. That said, if `conftest.py` is the only file or subdirectory you see in that `astropy` folder, there might not be much to worry about, as it takes up insignificant space.
