# Any way to clean PsychoPy cache manually?

**URL:** <https://discourse.psychopy.org/t/any-way-to-clean-psychopy-cache-manually/31166>\
**Category:** Builder\
**Created:** [October 1, 2022, 1:46am UTC](https://discourse.psychopy.org/t/any-way-to-clean-psychopy-cache-manually/31166 "2022-10-01T01:46:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnsla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cnsla/32/6292_2.png) [@cnsla](https://discourse.psychopy.org/u/cnsla)\
**Post date:** [October 1, 2022, 1:46am UTC](https://discourse.psychopy.org/t/any-way-to-clean-psychopy-cache-manually/31166/1 "2022-10-01T01:46:51Z")

</div>

**OS** (e.g. Win10): Mac Os High Sierra (and Catalina)  
**PsychoPy version** (e.g. 1.84.x): 2021.1.4, but tested several more recent ones too.  
**Standard Standalone? (y/n)** If not then what?: y

The experiment has a bit complicate hardware interaction. (Tobii Eyetracker through subprocess, Cedrus response device, Mic input via sounddevice).  
The experiment works 100% perfect when the first run after boot.

From the 2nd run, it randomly crash.  
Sometimes, force close psychopy and re open experiment works  
The other times, only reboot works.

I guess it’s something about cache file or cache data in memory, since I checked all running (unkilled) python processes through both Top command and system activity monitor.  
Also, I deleted .py every time but no luck.

Is there any way to manual ‘housekeeping’ to clear all caches generated by PsychoPy?

---

<div class="post-metadata">

**Author:** ![cnsla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cnsla/32/6292_2.png) [@cnsla](https://discourse.psychopy.org/u/cnsla)\
**Post date:** [October 3, 2022, 5:51am UTC](https://discourse.psychopy.org/t/any-way-to-clean-psychopy-cache-manually/31166/2 "2022-10-03T05:51:39Z")

</div>

The crash seems the one related to below thread.

> [@Psychopy 2021.2.0 crashing Python on experiment start](https://discourse.psychopy.org/t/psychopy-2021-2-0-crashing-python-on-experiment-start/23847):
>
> OS: Mac OS X 10.15.7 (19H15) PsychoPy version: 2021.2.0 Standard Standalone? (y/n): standalone What are you trying to achieve?: run experiment Before today I was running psychopy 2020.1.2 just fine, however I wanted to upgrade to 2021.2.0 in order to use the new microphone recording features. Now, I can’t start any experiment locally - it crashes Python on experiment start. This happens both for an already-developed experiment, and a brand new one with just one routine added with a textbox. …

However, I cannot figure out what is ‘confirmed’ solution/workaround for the experiment built in 2021.1.4 builder.  
Below thread mentioning manual cleaning of ‘cache’ folder, but I am afraid it would delete all monitor setting too.

> [@Urgent help needed PsychoPy crash and our study starts this Sunday!](https://discourse.psychopy.org/t/urgent-help-needed-psychopy-crash-and-our-study-starts-this-sunday/19461):
>
> If this template helps then use it. If not then just delete and start from scratch. OS (e.g. Win10): Win10 PsychoPy version (e.g. 1.84.x): 3 Standard Standalone? (y/n) If not then what?:y \*\*What are you trying to achieve?: After modifying the audio In PychoPy3\>Preferences\>Hardware I changed from [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’,] to [‘PTB’, ‘sounddevice’, ‘pyo’, ‘pygame’] the program crashed. I have uninstall it and re-install it and nothing works. When I try to open Psychopy I don…
