pre_remove() {

if [ "pacman" != "pacman" ] && [ "$1" != "remove" ]; then
    exit 0
fi

echo "Deleting files from site-packages..."
rm -Rf /data/data/com.termux/files/usr/opt/pypy/site-packages/*

echo "Deleting *.pyc..."
find /data/data/com.termux/files/usr/opt/pypy/lib-python/ | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
find /data/data/com.termux/files/usr/opt/pypy/lib_pypy/ | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf

exit 0
}
