Termux Storage : Clean Your Termux Storage

4 minute read

Termux Storage

So these days, I used to be operating with Termux, and that I was attempting to put in a brand new Tool; however, I saw that my Storage is full. And once I checked the Termux storage, It was 8GB. To wash this storage, I will Clear the information of my Termux app; however, there square measure some vital tools that I do not wanna Delete, and most of you face similar problems. Therefore during this post, I'm gonna show you ways you'll be able to determine that Files square measure taking extra space in Your Termux, and you'll be able to delete them one By one while not really deleting the Termux app.

Clean Your Termux Storage :

While mistreatment Termux we have a tendency to install tons of tools and when it slow do not|we do not} use Those Tools however there's no Uninstall button for any tool and that we don't even apprehend that tools square measure taking extra space and that tool we must always delete to Clear Storage in our Termux app. to resolve of these storage problems we are going to the United States of America commands that may facilitate us to spot all the Storage uptake files in Termux. This cannot be my very own methodology. I found it on Reddit, and you'll be able to ensure Reddit here.

Termux Storage : Clean Your Termux Storage



For this, we are going to the United States of America du (Disk usage) command, which can provide us the information of memory usages with Termux. This command Comes to Preinsatted in Termux. Therefore, we will simply use it directly with any setup.


Below, square measure the steps to resolve your Termux Storage problems.

1. Move to the Files Folder in Termux :

If you may run du command in your Home Directory of Termux, you may not see any helpful info. It'll simply show you the Disk Usages of all the files in the Home Directory. To examine Disk usages of all the Files in the Termux app, we will move to the Files Directory in Termux. From there, if you run the du command, it'll offer you Disk usages information on just about something in Termux. Simply use the below command to vary your directory to the files folder. 

cd /data/data/com.termux/files

Termux Storage : Clean Your Termux Storage


2. Notice high ten largest Files In Termux :

Now you'll be able to perpetually run the du command and see all the information concerning the file storage; however, by mistreatment of the below command, you'll be able to establish the highest ten Storage uptake Files in Termux. You'll be able to additionally modification the amount from ten five|to five} or twenty to examine high 5 or twenty files. 

du -ha | kind -k1hr | head -n ten

Termux Storage : Clean Your Termux Storage 

When getting into this command, you may see the List of files that square measure mistreatment most of the storage. Currently, you simply need to establish that one isn't helpful for you. Simply copy the trail of your Non-Useful File as shown within the below image.

Termux Storage : Clean Your Termux Storage


3. Delete Useless Files In Termux :

Now you recognize that file isn't helpful for you and mistreatment the below command, you'll be able to simply delete that file. If you're hesitant in deleting them, do not. As a result of you'll be able to perpetually install those tools. Before deleting something, Please Copy Confidential information like information retrieved from Victim into Your Internal storage. 

rm -rf ~/the-path-of-the-file-you-wanna-delete

Termux Storage : Clean Your Termux Storage


Ex: rm -rf ~/./user/share/apache2/default-site/htdocs


If you do not get any errors, then it means the File is deleted with success.

Conclusion :

This was a straightforward post; however, you'll be able to Clean your Termux Storage while not deleting the complete Termux. This methodology is recommended by one amongst the developers of the Termux app. you'll be able to additionally delete all the non-useful tools that we tend to transfer from Github, and you'll be able to uninstall some huge packages too. If you've got any Post plan, check that you comment down below. Also, scan This Post on [ a way to encode your Personal information With Termux to create it safer ]. I even have lined all these commands in my Termux Basic Commands post wherever you'll be able to transfer free PDF to find out all the essential commands in Termux. Thanks for Reading, Guys. Keep galvanized and perpetually keep moral.