摘要 |
The embodiments of the present invention provide a method and apparatus for processing a file. By means of acquiring a target file to be scanned and then using recognition data of a deletable file to recognize the target file, so as to obtain a recognition result, the recognition result comprising the target file being a deletable file, the target file being an undeletable file or the target file being an unknown file, the embodiments of the present invention enable the deletion of the deletable file according to the recognition result. Since the recognized deletable file can be directly deleted without the need to perform virus scanning processing thereon and then pop up a corresponding alarm prompt regarding a confirmed virus file to remind a user to delete the virus file, the occupation of system resources of a terminal can be reduced, thereby improving the processing performance of the terminal. |