Modern instant messengers often become the main consumers of the internal memory of a smartphone, and Telegram is no exception in this regard. Active use of video channels, sending heavy files and accumulating thousands of images lead to the application starting to take up tens of gigabytes of space. Users who want to free up space for new photos or system updates often wonder about the exact location of this temporary data in the deviceโs file system.
Understanding the data storage structure allows you not only to manually delete unnecessary things, but also to correctly configure automatic application maintenance. In this article, we will examine in detail the physical paths to cache folders, the features of the file system in different versions of Android, and methods for safe optimization without losing important correspondence.
Data storage structure in Telegram
The messenger uses a specific architecture for working with media files, dividing them into a message database and separately stored multimedia objects. Cache represents exactly those files that were downloaded for display in the chat, but are not part of the text message history. The system strives to speed up the launch of the application and the opening of dialogs as much as possible, so it saves all viewed pictures and videos in local storage.
Unlike some other apps, Telegram does not store all data in one monolithic file. Images, videos, voice messages and documents are arranged in different subdirectories within the main application folder. This is done to optimize file indexing and speed up access to specific types of content when scrolling the feed.
It is worth noting that deleting these files through the file manager does not erase them from the messenger cloud server. Telegram works on the principle of cloud storage, so when you reopen the chat, the application will simply re-download the deleted picture or video from the network if they were not deleted by the sender forever.
The built-in cache clearing function in the application settings is safer than manually deleting files, as it correctly updates the index database.
Path to files in modern versions of Android
Starting with Android 11, Google has tightened the rules for accessing the file system as part of the Scoped Storage function. This change has a dramatic impact on where third-party app data now resides. If previously the folders were located in the root of the internal memory, now they are hidden deep in system directories, access to which is limited without special rights or explorers.
The current path to messenger data on most modern smartphones looks like this:
Android/data/org.telegram.messenger/files
It is inside this directory that the main subfolders with media files are located. However, it is worth considering that standard file explorers may not display the contents of a folder Android/data without granting special permissions. The user may be required to confirm access to system files when entering this directory for the first time.
โ ๏ธ Attention: Directly deleting files through third-party file managers in the folder
Android/datamay lead to desynchronization of the application database. Telegram may stop displaying thumbnails or display an error when trying to open a file that is physically deleted but is listed in the index.
Inside the main folder you will find several key directories responsible for different types of content. For example, the folder Telegram Images stores photos, and Telegram Video stores videos. Understanding this hierarchy helps you specifically delete only the type of data that takes up the most space.
Cache location on older versions of the system
On devices running Android 10 and below, the file system structure was more open and understandable for the average user. Application data was often located in the root directory of the internal memory, which simplified manual access to them without the need to delve into the depths of the system.
The classic path for older versions of the operating system looked like this:
/Telegram/
or
/Android/data/org.telegram.messenger/
In the root folder Telegram the data was still sorted more clearly. The user could immediately go to the folder Telegram Photos or Telegram Documents and delete what was unnecessary. This structure remained for a long time and was familiar to many owners of smartphones of previous generations.
If you updated your smartphone to a new version of Android, but are using an old backup copy or transferred data from an old device, the folder structure may be partially preserved. However, when you cleanly install the application on the new Android 11+, the data will automatically be created in a new protected directory Android/data.
Why did Google change the folder structure?
Changes in Android 11 are aimed at protecting user privacy. Now applications cannot easily scan the entire phone memory and access files of other apps without the user's explicit permission.
Manual cleaning through a file manager
For those who prefer to control every byte deleted, manual cleaning remains an effective method. You will need a high-quality file manager that supports working with system folders, for example Files by Google, Solid Explorer or Total Commander. Standard explorers from smartphone manufacturers sometimes hide system partitions.
The deletion process is as follows:
- ๐ Open the file manager and go to the "Internal memory" section.
- ๐ Find the folder
Android, then go indata. - ๐ Find the directory
org.telegram.messenger(or similar for your version of the messenger). - ๐ Go to the folder
filesand delete the contents of subfolders with media.
When deleting large amounts of data the process may take several minutes. It is recommended to delete files in small portions so as not to overload the smartphone processor and avoid freezing of the Explorer interface. This is especially true if the cache takes up more than 5-10 gigabytes.
| File type | Approximate size | Update frequency | Impact on operation |
|---|---|---|---|
| Images | Medium (2-5 MB) | High | Minimum |
| Video | Large (10-100+ MB) | Medium | Scrolling slowdown |
| Voice | Small (0.5-2 MB) | High | None |
| Documents | Miscellaneous | Low | Depends on the type |
After deleting files, it is recommended to restart the device. This will allow the system to correctly recalculate the free space and update the media library indexes so that โbrokenโ thumbnails of deleted files do not remain in the phoneโs gallery.
Manual deletion is effective for one-time cleaning of large amounts of data, but requires caution when working with Android 11+ system folders.
Using built-in cleaning tools
The safest and developer-recommended way to free up space is to use the built-in memory management tool. It is located directly in the application settings and takes into account all the nuances of the Telegram database. This method eliminates the risk of corrupted indexes and errors when displaying chats.
To use this feature, follow these steps:
- Open the application and go to the settings menu.
- Select section
Data and memory. - Click on the item
Memory usage. - Check out the statistics and click the button
Clear Telegram cache.
In the same section you can configure automatic cleaning. The function Auto-delete allows you to set the storage period for media files. For example, you can set a rule so that photos and videos are deleted from the phone's memory 3 days or a week after viewing.
โ ๏ธ Attention: Setting up auto-delete does not delete files from Telegram servers. You can always download them again by opening the corresponding chat. This applies only to the local copy on your device.
The advantage of the built-in tool is that it cleans not only files, but also thumbnails, which often take up a significant amount of space, but are not visible to the user as separate objects in the file manager.
โ๏ธ Setting up automatic cleaning
Setting cache and startup limits
To prevent the memory overflow problem from returning, it is wise to limit the maximum cache size. In the memory usage settings, there is a slider or input field that allows you to set the maximum amount in gigabytes. Once the cache reaches this value, the application will begin to automatically delete the oldest files.
It is also critical to configure your media startup settings. By default, Telegram can download all photos and videos when using the mobile network, which not only wastes traffic, but also clogs up memory. It is recommended to change the settings in the section Autoload media.
Optimal configuration to save space:
- ๐ต For mobile networks: disable downloading of videos and large files.
- ๐ถ For Wi-Fi: leave downloading photos and videos turned on.
- ๐พ For roaming: completely disable auto-downloading of any content.
This approach ensures that heavy video files from channels that you view briefly and do not plan to save forever will not be saved in the phoneโs memory. This is especially true for users with budget smartphones with 32 or 64 gigabytes of internal memory.
Set the cache limit to 1-2 GB. This is enough for comfortable work without constant downloads from the Internet, but is not critical for the total memory capacity of the smartphone.
Frequently asked questions
Is it safe to delete the Telegram folder completely through the file manager?
Complete deletion of the folder may lead to loss of application settings and the need for re-authorization. It is better to delete only the contents of the media subfolders (images, video), leaving the system database files intact. The safest option is to clear it through the settings of the application itself.
Why is the space not freed up after clearing the cache?
You may have cleared only the thumbnails, and the original files remained in the downloads folder or documents. Also check the file manager trash - some smartphones do not permanently delete files, but move them to temporary storage. Try emptying the trash.
How to transfer the Telegram cache to a memory card?
In modern versions of Android and Telegram, the ability to change the cache saving path to an SD card is often missing or unstable due to system limitations. In the โData and Memoryโ settings, check the โData Pathโ item, but on many devices it will be inactive.
Will my conversations be deleted when clearing the cache?
No, the text history of correspondence, contacts and settings are stored on Telegram servers and in the applicationโs secure database, which is not affected by standard cache clearing. You will only lose local copies of pictures and videos, which can be downloaded again.