Has your Android smartphone started to slow down, run out quickly, or show โNot enough memoryโ errors? The reason in 90% of cases lies in the accumulated digital garbage: remnants of deleted applications, a full cache, duplicate files and background software that you have not used for a long time. But simply deleting a few apps is not enough for deep cleaning.
In this article you will find step-by-step guide how to clean up all types of contamination - from the system cache to hidden folders with garbage, and also learn how to avoid common mistakes that lead to data loss or slowing down your phone even more. The methods are suitable for devices Samsung Galaxy, Xiaomi Redmi/POCO, Honor, Realme and other brands based on Android 10โ14.
We will pay special attention hidden Android mechanisms that most "instructions" ignore: for example, how to properly clear a folder /data/local/tmp or why you shouldnโt delete the system application cache through ADB without preparation. Let's start with the safest - manual cleaning, and then move on to advanced methods.
1. Preparing to clean up: what you need to do before you begin
Before you begin deleting files, take three critical steps. If you skip them, you risk losing contacts, photos, or even blocking your phone.
- ๐ฑ Create a backup copy. Use
Settings โ Google โ Backupor third-party services like Titanium Backup (requires root). It is especially important to save:- SMS and call history (applications like SMS Backup & Restore)
- Wi-Fi and Bluetooth device settings
- Game data (via Google Play account or Helium)
- ๐ Charge the phone to at least 50%. Interrupting cleaning due to discharge may damage system files.
- ๐ก Connect to stable Wi-Fi. Many methods (for example, resetting the cache via
Recovery) require downloading additional data.
If you plan to use ADB or root access, check whether developer optionsare unlocked on your device. To do this, go to Settings โ About phone โ Build number and tap on it 7 times. The message โYou have become a developerโ will appear.
โ ๏ธ Attention: On devices Xiaomi and Redmi after activating the developer mode, you must additionally enableUSB debuggingandOEM unlockingin the menuFor developersWithout this, the commandsADBwill not work. work.
2. Clearing the cache: what can be deleted and what not
Caches are temporary files that applications create to speed up work. Over time, they accumulate and take up gigabytes of memory. But. you need to delete the cache selectively (selectively), otherwise some apps will start to work slower or require re-authorization.
2.1. Clearing the cache of individual applications
The safest way:
- Open
Settings โ Applications. - Select an application (for example, Instagram or Google Chrome).
- Tap
Storage โ Clear cache.
For mass clearing, use the built-in tools:
- ๐งน On Samsung:
Settings โ Device maintenance โ Storage โ Clean. - ๐งน On Xiaomi/Redmi/POCO:
Security โ Cleaning โ Garbage. - ๐งน On "clean" Android:
Settings โ Storage โ Free up space.
2.2. System cache: when and how to clear
System cache (/cache) contains update data, temporary kernel and firmware files. Cleaning it helps with:
- Freezes after updating Android.
- Errors like "The application has stopped." X stopped."
- Slow system loading.
To clean:
- Turn off the phone.
- Hold
Power button + Volume up(on some models Samsung โPower + Bixby + Volume up). - In the menu
RecoveryselectWipe cache partition(control - volume buttons, selection - power button). - After completion, reboot (
Reboot system now).
โ ๏ธ Attention: Do not confuseWipe cache partitionwithWipe data/factory reset! The second option will completely reset the phone to factory settings.
Make a backup of important data|Charge the phone >50%|Remember account passwords (after cleaning, you may need to re-enter them)|Check the free space (there should be at least 1 GB)-->
3. Removing unnecessary files and duplicates
On average, an Android user stores 2โ5 GB of garbage in the form of:
- ๐ Duplicate photos (for example, from WhatsApp, Telegram and gallery).
- ๐ต Unused melodies and ringtones (folder
/Ringtones). - ๐ Old documents (PDF, DOCX) from
/Download. - ๐ฎ Game cache (folder
/Android/obbcan weigh up to 10 GB!).
To search and remove garbage:
| File type | Where to look | How to clean |
|---|---|---|
| Duplicates photo | /DCIM/Camera, /Pictures |
Applications Files by Google or Duplicate Files Fixer |
| Downloaded files | /Download, /Downloads |
Manual sorting or Settings โ Storage โ Files |
| Game cache | /Android/obb, /Android/data |
Delete the game folder (first uninstall the game via Settings) |
| Logs and dumps | /data/log, /sdcard/log |
Delete via Root Explorer (requires root) |
For automated cleaning, use Files by Google:
- Open the application and go to the tab
Cleaning. - Select categories: "Unused applications", "Duplicates", "Large" files".
- Click
Clear XX MBand confirm deletion.
Before deleting the folder /Android/obb check if game saves are stored there. Some titles (for example, Genshin Impact) save progress locally and not in the cloud.
4. Optimizing startup and background processes
Many applications start when you turn on the phone and run in the background, using up memory and battery power. data-i="160">can consume up to Facebook or AliExpress can consume up to 300 MB of RAM even when you do not open them.
To disable autoloading:
- ๐ On Xiaomi/Redmi:
Settings โ Applications โ Autorun management. - ๐ On Samsung:
Settings โ Applications โ โฎ (menu) โ Autorun. - ๐ On "pure" Android: use Greenify (requires root for full control).
To limit background activity:
- Go to
Settings โ Applications. - Select an application (for example TikTok).
- Tap
Battery โ Background limitation. - Select
LimitedorOptimized.
โ ๏ธ Attention: Do not limit the background operation of system applications (for example, Google Play Services or Android SystemThis may lead to synchronization and notification errors.
What happens if you disable auto-loading of instant messengers?
When disabling autorun for WhatsApp, Telegram or Viber You won't receive new message notifications until you manually open the app. However, background RAM and battery consumption will be reduced by 15โ40% (depending on the phone model).
5. Advanced cleaning: ADB and root methods
If the standard methods did not help, and the phone is still slow, it's time for deep cleaning. These methods require technical skills and can lead to loss of warranty or device inoperability if used incorrectly.
5.1. Cleaning via ADB (without root)
Using ADB (Android Debug Bridge) you can delete the cache of system applications that are usually not available for cleaning. For example, the cache Google Play Services can take up to 1 GB.
Instructions:
- Install ADB on PC (download Platform Tools).
- Connect your phone via USB and enable debugging.
- Open a command line in the folder with
ADBand enter:adb shell pm list packages -f | grep cacheThis will show applications with a large cache.
- To clear the cache of a specific package (for example,
com.google.android.gms):adb shell pm clear com.google.android.gms
5.2. Manual garbage removal via root
If you have root access, you can manually clean hidden folders:
/data/local/tmpโ temporary files of system processes./data/logโ error logs (can be deleted if the phone works stably)./data/dalvik-cacheโ virtual machine cache (clear only if there are problems with launching applications).
To do this, use Root Explorer or FX File Explorer:
- Open a file manager with root access.
- Go c
/dataor/system. - Delete the contents of the target folders (do not delete the folders themselves!).
- Restart the phone.
Cleaning via ADB or root can speed up the phone by 20-50%, but requires caution One wrong command in ADB. (for example, adb shell rm -rf /data) will lead to a complete system reset.
6. Fighting viruses and malware
Viruses on Android often disguise themselves as useful applications (for example, โMemory cleanersโ or โBattery boostersโ) and steal data or show advertisements. infections:
- ๐ฑ The appearance of unfamiliar icons on the desktop.
- ๐ Rapid battery drain (even in standby mode).
- ๐ถ Unexpected traffic (check in
Settings โ SIM cards and mobile networks โ Traffic usage). - ๐ซ Lock screen demanding payment (โYour phone is blocked by the FSB!โ).
To scan and remove viruses:
- Install Malwarebytes or Dr.Web Light (free versions are sufficient).
- Run a full scan (not a quick one!).
- Remove detected threats and reboot your phone.
If a virus is blocking the installation of the antivirus:
- Download your phone in
Safe Mode(press the power button โ long tap on "Turn off" โ "Safe Mode"). - Remove suspicious applications through
Settings โ Applications. - Install an antivirus and scan the system.
โ ๏ธ Attention: Some "cleaners" (for example, Clean Master or DU Speed Booster) themselves contain malicious code. Use only proven antiviruses from Google Play.
7. Factory Reset: When Needed
Hard Reset is an extreme measure that should be resorted to if:
- ๐ข The phone slows down even after all cleaning.
- ๐ฆ Viruses are not removed by antiviruses.
- ๐ Critical errors occurred after updating Android.
- ๐ฑ You are selling or giving the phone to another person.
How to reset:
- Create a backup copy (see section 1).
- Go in
Settings โ System โ Reset settings. - Select
Delete all data (reset to factory settings). - Confirm the action and wait until the reboot.
Alternative method (if the phone does not turn on):
- Boot into
Recovery(see section 2.2). - Select
Wipe data/factory reset. - Confirm the action and reboot.
After a reset, do not restore data from a backup if the phone was infected with viruses. Virus files may be returned along with the backup.
8. Prevention: how to keep your phone clean
To avoid bringing your phone to a state where deep cleaning is required, follow these simple rules:
- ๐ฒ Delete unused applications once a month. Check the list in
Settings โ Applications โ Unused. - ๐๏ธ Empty the trash in the gallery and file manager (files are stored there for up to 30 days).
- ๐ Update the software. New versions of Android have optimized memory management (for example, Android 14 a mechanism for automatically clearing the cache has been added).
- ๐ก๏ธ Do not install APK from unverified sourcesEven โhackedโ games often contain them. miners or spyware.
- ๐ Monitor memory consumption via
Settings โ Memoryor application Simple System Monitor.
For automatic optimization, configure:
- On Samsung:
Settings โ Device maintenance โ Auto optimization(turn on the schedule). - On Xiaomi:
Security โ Cleaning โ Auto Cleaning(set to run weekly).
โ ๏ธ Attention: Automatic cleaning functions (for example, MIUI Optimizer) sometimes delete necessary files, such as game saves or downloaded documents. Before activation, check what data is subject to cleaning.
FAQ: Frequently asked questions about cleaning Android
Is it possible to clear the cache of system applications (for example, Google Play Services)?
Yes, but with caution. The cache Google Play Services or Android System can be cleared through Settings โ Applications, but do not delete application data (button Clear data), otherwise Google services (Gmail, Maps, Play Market) may stop working. After clearing the cache, restart the phone.
Why did the phone work even slower after cleaning?
This happens for three reasons:
- You deleted the cache all applications, and now they are rebuilding it again, consuming resources.
- The cleaning was superficial, and the real problem is memory fragmentation or storage wear (relevant for phones older than 3 years).
- The virus or malware remains in the system and continues load the processor.
Solution: check your phone with an antivirus, run defragmentation (on Android 10+ it happens automatically) and monitor the work for 2-3 days. If the brakes remain, consider resetting to factory settings.
How to clear the /Android/obb folder if it takes up 10+ GB?
Folder /Android/obb stores additional game data and applications (for example, graphics for Call of Duty Mobile or PUBGTo clear it:
- Delete games that you no longer use through
Settings โ Applications. - Open the file manager. (for example Files by Google) and manually delete folders with game names from
/Android/obb. - If the game is still needed, but takes up too much space, try disabling HD graphics loading in its settings.
obb entirely - this may lead to errors in running applications.
Do I need to clean my phone if I have 256 GB of memory and it is only half full?
Yes, even with a large amount of memory, slowdowns occur not only due to lack of space, but also for the following reasons:
- Memory fragmentation: the longer the phone is used, the more the files become fragmented, and the system takes more time to read them.
- Full cache: even with 100 GB free, 5 GB of cache can slow things down.
- Background processes: applications consume RAM regardless of the amount of permanent memory.
It is recommended to clear the cache and optimize startup once every 1-2 months, regardless of free space.
How to clear a phone before selling so that the new owners do not receive my data?
To completely clear it before selling:
- Make a backup copy of important data (photos, contacts, messages).
- Do factory reset (see section 7).
- If your phone supports encryption (
Settings โ Security โ Encryption, turn it on before resetting. This will make data recovery difficult. - After reset fill the memory with garbage: download a large file (for example, a movie) and then delete it. This will overwrite the memory sectors with your data.
- Remove SIM card and memory card (if there was one).
Important: even after a reset, the data can be restored with special apps. If confidential information was stored on the phone (photos of documents, passwords), consider the option of physically destroying the drive (relevant for corporate devices).