File management method and apparatus

The invention provides a file management method and apparatus. The method comprises: obtaining indexes of application identifiers corresponding to specified applications in a terminal from a preset index database, wherein the indexes and file information generated during installation or running of the specified applications have an associative relationship, and the indexes are in one-to-one correspondence with the application identifiers; and managing the file information according to the indexes and the associative relationship. With the adoption of the technical scheme provided by the invention, the technical problems of relatively high artificial maintenance workload and the like due to management of application-related files in related technologies are solved, so that the manual workload of file management is reduced, the disk utilization rate is increased, and the user experience is improved.