Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
In the specific implementation, terminal mentioned by the embodiment of the present invention includes but is not limited to: smart phone (such as Android hand
Machine, IOS mobile phone), tablet computer, laptop, palm PC, mobile internet device (MID, Mobile Internet
) or the electronic equipments such as wearable intelligent equipment Device.
It should be noted that method described in the invention is executed by one group of code stored in memory, the generation
Code is implemented in the computer system based on von Neumann system.The computer program, which can be, executes the end that file deletes function
Hold program.Correspondingly, the computer system can be the terminal device for deleting function with file.
A kind of delet method provided in an embodiment of the present invention and terminal are specifically retouched below in conjunction with Fig. 1 to Fig. 5
It states.
It is a kind of flow diagram of delet method provided in an embodiment of the present invention, deletion side as shown in the figure referring to Fig. 1
Method can comprise the following steps that
S101 is instructed according to first movement, mobile first file.
In the specific implementation, file described in the present embodiment includes but is not limited to: audio file, video file, text text
Part, picture file, application file or icon of file etc..User can pass through input unit (such as object of terminal first
Manage keyboard or touch screen etc.) for the input first movement instruction of the first file, when terminal receives first movement instruction, according to
First movement instruction, mobile first file.For example, terminal is the smart phone with touch screen, and the first file is current intelligence
The QQ application icon on interface of main menu that energy mobile phone is shown, at this point, user can pass through touch screen long-pressing QQ application drawing with finger
It is marked with and chooses;If user press...withes one's finger, the QQ application icon moves on the touchscreen, is considered as user at this time for the QQ
Application icon input first movement instruction, the sliding trace of the location following user's finger of the QQ application icon on the touchscreen into
Row movement.In another example terminal is portable computer, and the first file is the document files on current portable computer desktop, at this point, with
Family can click left mouse button for this article files to choose;If user clicks left mouse button and drags this article files on the table
It is moved, is considered as user at this time for the input first movement instruction of this article files, the location following mouse of this article files
Dragging track moved.
S102 forms overlapping region between first file and the file if detecting, is deleted according to preset rules
Except the second file to match in first file and/or the file with first file.
In the specific implementation, the file includes at least a file.After user completes the movement of the first file, inspection
Survey the first file final position whether with file formed overlapping region, and testing result be when, deleted according to preset rules
Except the second file to match in first file and/or the file with first file.For example, terminal is band touching
The smart phone of screen is touched, and user carries out choosing it with the first file QQ application icon on the current interface of main menu of finger long-pressing
Afterwards, it drags the QQ application icon with finger to be moved, the position of finger on the touchscreen is as this when user is unclamped finger
The final position of QQ application icon, if final position region also has a file, the first file presss from both sides to be formed with this document
Overlapping region;If there is the second file, and second file also QQ application icon in file, the first file and the are thought at this time
Two files are matched, therefore can be according to the second file QQ application icon in preset rules Delete Folder, or delete first
File QQ application icon, or the first file and the second file are deleted simultaneously.
It is described to be deleted in first file and/or the file according to preset rules in another alternative embodiment
The second file to match with first file may particularly include:
Judge first file data information whether the data information phase with the second file in the file
Match;When the judgment result is yes, first file and/or second file are deleted according to preset rules.
In the specific implementation, in order to save memory space in same terminal, usual identical file or same type of
Application file can only save portion, therefore, can be further when detecting formation overlapping region between the first file and file
Judge whether the data information of the first file match with the data information of the second file in file, and in judging result
When to be, the step of deleting first file and/or second file according to preset rules is executed.Wherein, data information
Including but not limited to file content, file name, file attribute, file type or file icon figure etc..For example, the first text
Part and the second file are document files, then, can be into one when detecting formation overlapping region between the first file and file
Whether the file name of the second file and file content are identical in step the first file of detection and file, if so, thinking the
The data information of one file and the second file is matched, and then can delete the first file and/or the second file.For another example the
One file is " Baidu map ", and the second file is " Amap ", and the file name of the first file and the second file can be detected
In all include " map ", at this point, terminal can judge the file of the first file and the second file by " map " this keyword
Attribute is identical (being all to belong to navigation type application file), it is therefore contemplated that the data information of the first file and the second file is matching
, and then the first file or the second file therein can be deleted, or even all delete;Certainly it can also detect in this example
When in the file name of the first file and the second file all including " map ", the data letter of the first file and the second file is just thought
Breath is matched (file name part is identical).
In a further alternative embodiment, before executing step S102, the method also includes: according to the second move,
The mobile file.
In the specific implementation, file can be moved simultaneously when moving the first file, it can also first move the first file and move back
Dynamic file can also first move file and move the first file again, in moving process or mobile when completing, and can detect the
Overlapping region whether is formed between one file and file, and when testing result, which is, is, delete the first text according to preset rules
In part and/or file with matched second file of the first file.For example, terminal is the smart phone with touch screen, and first
File is the QQ application icon on the current smart phone display page;File is the application program text on current display page face
Part folder, at this point, then user can pin two respectively by thumb and index finger long-pressing QQ application icon and Application Folder
Person moves on the display page.Mobile first file and file simultaneously, the relative position transformation that can make the two faster, make
File is moved to the target position of user faster and then carries out delete operation, improves operating efficiency.
In a further alternative embodiment, first file and/or the text are deleted according to preset rules in step S102
The second file to match in part folder with first file can specifically: if the creation time of first file is earlier than described
The creation time of second file deletes first file;Alternatively, if the version information of first file is earlier than described second
The version information of file deletes first file;Alternatively, deleting first file if moving first file;Or
Person deletes first file and second file if moving first file and second file.
For example, detect between the first file and file formed overlapping region when, can further obtain in file with
Matched second file of first file, and then judge the creation time of the first file whether earlier than the second file in file
Creation time, if so, the first file is deleted, if it is not, can then delete the second file.Similarly, for example, the first file is QQ application
The corresponding QQ version information of icon is QQ2007, and the second file is that the corresponding QQ version information of QQ application icon is QQ2003, then
Overlapping region is formed between the first file and file if detecting, further detects that version information QQ2003 believes earlier than version
QQ2007 is ceased, therefore the QQ application icon that version information is QQ2003 can be deleted.
In a further alternative embodiment, when first file is the first application icon, the second file is the second application drawing
When mark, the method also includes: when deleting first application icon, unloads first application icon corresponding first and answer
With;Alternatively, unloading corresponding second application of second application icon when deleting second application icon;Alternatively, when deleting
When except first application icon and second application icon, corresponding first application of first application icon and institute are unloaded
State corresponding second application of the second application icon.
For example, the first file is QQ application icon, corresponding QQ version information is QQ2007;The second file in file
It also is QQ application icon, corresponding QQ version information is QQ2003;Weight is formed between the first file and file if then detecting
Folded region, and when what is deleted is the QQ application icon that version information is QQ2003, while detachable mounted terminal is with version information
The corresponding QQ application program of the QQ application icon of QQ2003.Using this method, when user wants to unload certain application program,
It goes that corresponding application program is selected to be unloaded without the control panel to open a terminal, and directly by deleting display on the table
Application icon go to unload same or similar application program.
The embodiment of the present invention includes at least one file in file, and terminal can be instructed according to first movement, and mobile first
File;Can also detect form overlapping region between first file and file when, deleted according to preset rules described in
The second file to match in first file and/or the file with first file.It, can letter using the embodiment of the present invention
Change the deletion step of file, improves file operation efficiency.
It referring to fig. 2, is the flow diagram of another delet method provided in an embodiment of the present invention, deletion as shown in the figure
Method can comprise the following steps that
S201 is instructed according to first movement, mobile first file.
In the specific implementation, file described in the present embodiment includes but is not limited to: audio file, video file, text text
Part, picture file, application file or icon of file etc..User can pass through input unit (such as object of terminal first
Manage keyboard or touch screen etc.) for the input first movement instruction of the first file, when terminal receives first movement instruction, according to
First movement instruction, mobile first file.For example, terminal is the smart phone with touch screen, and the first file is current intelligence
The QQ application icon on interface of main menu that energy mobile phone is shown, at this point, user can pass through touch screen long-pressing QQ application drawing with finger
It is marked with and chooses;If user press...withes one's finger, the QQ application icon moves on the touchscreen, is considered as user at this time for the QQ
Application icon input first movement instruction, the sliding trace of the location following user's finger of the QQ application icon on the touchscreen into
Row movement.In another example terminal is portable computer, and the first file is the document files on current portable computer desktop, at this point, with
Family can click left mouse button for this article files to choose;If user clicks left mouse button and drags this article files on the table
It is moved, is considered as user at this time for the input first movement instruction of this article files, the location following mouse of this article files
Dragging track moved.
S202 forms overlapping region between first file and file if detecting, judges first file
Whether data information matches with the data information of the second file in the file.
In the specific implementation, the file includes at least a file.After user completes the movement of the first file, inspection
Survey the first file final position whether with file formed overlapping region, and testing result be when, further detect first
Whether the data information of file matches with the data information of the second file in the file.Wherein, data information includes
But be not limited to file content, file name, file attribute, file type or file icon figure etc..
For example, terminal is the smart phone with touch screen, and user is with first on the current interface of main menu of finger long-pressing
After file QQ application icon is chosen, the QQ application icon is dragged with finger and is moved, hand when user is unclamped finger
The position of the finger on the touchscreen position final as the QQ application icon, if final position region also has a file,
Then the first file and this document press from both sides to form overlapping region;If there is the second file, and also QQ is applied second file in file
Icon thinks that the first file and the second file are matched (file icon figure is identical) at this time, therefore can be according to preset rules
The second file QQ application icon in Delete Folder, or delete the first file QQ application icon, or by the first file and the
Two files are deleted simultaneously.
For another example the first file is " Baidu map ", the second file is " Amap ", and the first file and the can be detected
It all include " map " in the file name of two files, at this point, terminal can judge the first file by this keyword by " map "
(being all to belong to navigation type application file) identical with the file attribute of the second file, it is therefore contemplated that the first file and the second file
Data information be matched, and then the first file or the second file therein can be deleted, or even all delete;Certainly in this reality
Example in can also in the file name for detecting the first file and the second file all include " map " when, just think the first file and
The data information of second file is matched (file name part is identical).
In another example the first file and the second file are document files, then detecting between the first file and file
Formed overlapping region when, further to detection the first file and file in the second file file name all are as follows: " the first document
File ", and file content is also identical, it is believed that the data information of the first file and the second file be it is matched, then can delete
First file or the second file can also delete two files simultaneously.
S203 deletes first file and/or second file according to preset rules when the judgment result is yes.
In the specific implementation, if the creation time of first file deletes institute earlier than the creation time of second file
State the first file;Alternatively, if the version information of first file deletes described the earlier than the version information of second file
One file;Alternatively, deleting first file if moving first file;Alternatively, if move first file and
Second file deletes first file and second file.
For example, detect between the first file and file formed overlapping region when, can further obtain in file with
Matched second file of first file, and then judge the creation time of the first file whether earlier than the second file in file
Creation time, if so, the first file is deleted, if it is not, can then delete the second file.Similarly, for example, the first file is QQ application
The corresponding QQ version information of icon is QQ2007, and the second file is that the corresponding QQ version information of QQ application icon is QQ2003, then
Overlapping region is formed between the first file and file if detecting, further detects that version information QQ2003 believes earlier than version
QQ2007 is ceased, therefore the QQ application icon that version information is QQ2003 can be deleted.
In another alternative embodiment, before executing step S202, the method also includes: according to the second move,
The mobile file.
In the specific implementation, file can be moved simultaneously when moving the first file, it can also first move the first file and move back
Dynamic file can also first move file and move the first file again, in moving process or mobile when completing, and can detect the
Overlapping region whether is formed between one file and file, and when testing result, which is, is, delete the first text according to preset rules
The second file to match in part and/or the file with first file.For example, terminal is the intelligent hand with touch screen
Machine, and the first file is the QQ application icon on the current smart phone display page;File is on current display page face
Application Folder, at this point, user can pass through thumb and index finger long-pressing QQ application icon and Application Folder respectively,
Then the two is pinned to be moved on the display page.Mobile first file and file simultaneously, can make the relative position of the two
Transformation faster, makes file be moved to the target position of user faster and then carry out delete operation, improves operating efficiency.
In a further alternative embodiment, when first file is the first application icon, the second file is the second application drawing
When mark, the method also includes: when deleting first application icon, unloads first application icon corresponding first and answer
With;Alternatively, unloading corresponding second application of second application icon when deleting second application icon;Alternatively, when deleting
When except first application icon and second application icon, corresponding first application of first application icon and institute are unloaded
State corresponding second application of the second application icon.
For example, the first file is QQ application icon, corresponding QQ version information is QQ2007;The second file in file
For QQ application icon, corresponding QQ version information is QQ2003;If then detecting, formation is Chong Die between the first file and file
Region, and when what is deleted is the QQ application icon that version information is QQ2003, while detachable mounted terminal is with version information
The corresponding QQ application program of the QQ application icon of QQ2003.Using this method, when user wants to unload certain application program,
It goes that corresponding application program is selected to be unloaded without the control panel to open a terminal, and directly by deleting display on the table
Application icon go to unload same or like application program.
The embodiment of the present invention includes at least one file in file, and terminal can be instructed according to first movement, and mobile first
File;Also first file can be judged when detecting formation overlapping region between first file and the file
Whether the data information between the second file in the file matches;And when the judgment result is yes, according to default
First file described in redundant rule elimination and/or second file.Using the embodiment of the present invention, can simplified-file deletion step,
Improve file operation efficiency.
It is a kind of terminal structure schematic diagram provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, terminal as shown in the figure at least may be used
To include: that file mobile unit 301 and file delete unit 302.
File mobile unit 301, for being instructed according to first movement, mobile first file.
In the specific implementation, including but is not limited to described in the present embodiment: audio file, video file, text file, figure
Piece file, application file or icon of file etc..User can pass through input unit (such as physical keyboard of terminal first
Or touch screen etc.) for the input first movement instruction of the first file, when terminal receives first movement instruction, file is mobile single
Member 301 is instructed according to the first movement, mobile first file.For example, terminal is the smart phone with touch screen, and the first file
QQ application icon on the interface of main menu shown for current smart phone, at this point, user can pass through touch screen long-pressing with finger
QQ application icon is to choose;If user press...withes one's finger, the QQ application icon moves on the touchscreen, is considered as user at this time
For QQ application icon input first movement instruction, the cunning of the location following user's finger of the QQ application icon on the touchscreen
Dynamic rail mark is moved.In another example terminal is portable computer, and the first file is the document text on current portable computer desktop
Part, at this point, user can click left mouse button for this article files to choose;If user clicks left mouse button and drags the document text
Part is moved on the table, is considered as user at this time for the input first movement instruction of this article files, the position of this article files
It sets and the dragging track of mouse is followed to be moved.
File deletes unit 302, forms overlapping region between first file and the file if detecting, according to
Preset rules delete the second file to match in first file and/or the file with first file.
In the specific implementation, including at least one file in file.After user completes the movement of the first file, detection
First file final position whether with file formed overlapping region, and testing result be when, file delete unit 302,
The second file to match in first file and/or the file with first file is deleted according to preset rules.
For example, terminal is the smart phone with touch screen, and user is answered with the first file QQ on the current interface of main menu of finger long-pressing
After being chosen with icon, the QQ application icon being dragged with finger and is moved, finger is touching when user is unclamped finger
Position on the screen position final as the QQ application icon, if final position region also has a file, the first text
Part and this document press from both sides to form overlapping region;If there is the second file, and second file also QQ application icon in file, at this time
Think the first file and the second file be it is matched, therefore file delete unit 302 can be according in preset rules Delete Folder
The second file QQ application icon, or delete the first file QQ application icon, or the first file and the second file deleted simultaneously
It removes.
Fig. 4 is the structural schematic diagram that a kind of file provided in an embodiment of the present invention deletes unit referring to fig. 4, as shown in the figure
File deletes unit 302 can include: matching judgment subelement 3201 and file delete subelement 3202.
Matching judgment subelement 3201, for judge first file data information whether in the file
The data information of second file matches;
File deletes subelement 3202, for when the judgment result is yes, deleting first file according to preset rules
And/or second file.
Wherein, data information includes but is not limited to file content, file name, file attribute, file type or file
Icon graphic etc..For example, the first file and the second file are document files, then detecting between the first file and file
Formed overlapping region when, further to detection the first file and file in the second file file name all are as follows: " the first document
File ", and file content be also it is identical, then illustrate that both of these documents are that identical file (thinks the first file and the second text
The data information of part is matched), then file, which deletes subelement 302, can delete the first file or the second file, can also delete simultaneously
Except two files.For another example the first file is " Baidu map ", the second file is " Amap ", and the first file can be detected
With in the file name of the second file all include " map ", at this point, terminal can judge first by this keyword by " map "
The file attribute of file and the second file is identical (being all to belong to navigation type application file), it is therefore contemplated that the first file and second
The data information of file is matched, and then can delete the first file or the second file therein, or even all delete;Certainly exist
When can also all include " map " in the file name for detecting the first file and the second file in this example, the first text be just thought
The data information of part and the second file is matched (file name part is identical).
The file is deleted unit 302 and is specifically used for: if the creation time of first file is earlier than second file
Creation time, delete first file;Alternatively, if the version information of first file earlier than second file version
This information deletes first file;Alternatively, deleting first file if moving first file;Alternatively, if moving
First file and second file have been moved, first file and second file are deleted.
For example, detect between the first file and file formed overlapping region when, can further obtain in file with
Matched second file of first file, and then judge the creation time of the first file whether earlier than the second file in file
Creation time, if so, file, which deletes unit 302, then deletes the first file, if it is not, file, which deletes unit 302, can then delete second
File.Similarly, for example, it is QQ2007 that the first file, which is the corresponding QQ version information of QQ application icon, the second file is QQ application
The corresponding QQ version information of icon is QQ2003, overlapping region is formed between the first file and file if then detecting, into one
Step detects version information QQ2003 earlier than version information QQ2007, therefore file deletes unit 302 and can delete version information and is
The QQ application icon of QQ2003.
In a further alternative embodiment, the file mobile unit 301 is also used to: deleting unit according to pre- in the file
If before the second file to match in the first file and/or the file described in redundant rule elimination with first file, root
According to the second move, the mobile file.
In the specific implementation, file can be moved simultaneously when moving the first file, it can also first move the first file and move back
Dynamic file can also first move file and move the first file again, in moving process or mobile when completing, and can detect the
Overlapping region whether is formed between one file and file, and when testing result, which is, is, delete the first text according to preset rules
In part and/or the file with matched second file of first file.For example, terminal is the intelligent hand with touch screen
Machine, and the first file is the QQ application icon on the current smart phone display page;File is on current display page face
Application Folder, at this point, user can pass through thumb and index finger long-pressing QQ application icon and Application Folder respectively,
Then the two is pinned to be moved on the display page.File mobile unit 301 while mobile first file and file, can make
The relative position transformation of the two faster, makes file be moved to the target position of user faster and then carry out delete operation, improves
Operating efficiency.
In a further alternative embodiment, first file is the first application icon, and the second file is the second application icon,
The terminal further include: unloading unit 303 is applied, for when deleting first application icon, unloading first application
Corresponding first application of icon;Alternatively, it is corresponding to unload second application icon for when deleting second application icon
Second application;Alternatively, unloading described first is answered for when deleting first application icon and second application icon
With corresponding first application of icon and corresponding second application of second application icon.
For example, the first file is QQ application icon, corresponding QQ version information is QQ2007;The second file in file
For QQ application icon, corresponding QQ version information is QQ2003;If then detecting, formation is Chong Die between the first file and file
Region, and delete be version information be QQ2003 QQ application icon when, while application the detachable mounted terminal of unloading unit 303 with
Version information is the corresponding QQ application program of QQ application icon of QQ2003.Using this method, when user wants certain application of unloading
When program, the control panel that can not have to open a terminal goes that corresponding application program is selected to be unloaded, and directly deletes and pass through
The application icon of display on the table goes to unload identical similar application program.
The embodiment of the present invention can be instructed by file mobile unit 301 according to first movement, mobile first file;Also
Unit 302 can be deleted by file when detecting formation overlapping region between first file and file, according to default
In first file and/or the file described in redundant rule elimination with the second file for matching in first file.Using this
Inventive embodiments, can simplified-file deletion step, improve file operation efficiency.
It is the structural schematic diagram of another terminal provided in an embodiment of the present invention, this reality as shown in the figure referring to Fig. 5, Fig. 5
Applying the terminal in example may include: at least one processor 501, such as CPU;Memory 502.Above-mentioned processor 501 and storage
Device 502 is connected by bus 503.
Memory 502, can be high speed RAM memory, be also possible to non-labile memory (non-volatile
Memory), a for example, at least magnetic disk storage.Memory 502 optionally can also be that at least one is located remotely from aforementioned place
Manage the storage terminal of device 501.Wherein processor 501 can terminal as shown in connection with fig. 3, wherein store one group in memory 502
Program code, and processor 501 calls the code stored in memory 502, for performing the following operations:
Above-mentioned processor 501 is instructed for first movement based on the received, mobile first file;.
Above-mentioned processor 501 forms overlapping region if being also used to detect between first file and the file,
The second file to match in first file and/or the file with first file is deleted according to preset rules.
Correspondingly, terminal provided by the embodiment of the present invention may also include that output equipment 504, for show file and
The file icon of file, the output equipment 504 can be specially display screen.In addition, terminal provided by the embodiment of the present invention may be used also
It include: input equipment 505, which may include that such as keyboard, Trackpad, fingerprint adopt the defeated of sensor and sound pick-up outfit
Enter equipment, user can input first movement instruction and/or the second move by input equipment 505.
In another alternative embodiment, the processor 501 is also used to: detecting first file and the file
Between form overlapping region, according to preset rules delete in first file and/or the file with first file
Before the second file to match, according to the second move, the mobile file.
In a further alternative embodiment, the processor 501 also particularly useful for: judge the data information of first file
Whether match with the data information of the second file in the file, the data information includes file content and/or text
Part title;When the judgment result is yes, first file and/or second file are deleted according to preset rules.
In a further alternative embodiment, the processor 501 also particularly useful for: if the creation time of first file is early
In the creation time of second file, first file is deleted;Alternatively, if the version information of first file is earlier than institute
The version information of the second file is stated, first file is deleted;Alternatively, deleting described first if moving first file
File;Alternatively, deleting first file and second file if moving first file and second file.
In a further alternative embodiment, first file is the first application icon, and the second file is the second application icon,
The processor 501 is also used to: when deleting first application icon, being unloaded first application icon corresponding first and is answered
With;Alternatively, unloading corresponding second application of second application icon when deleting second application icon;Alternatively, when deleting
When except first application icon and second application icon, corresponding first application of first application icon and institute are unloaded
State corresponding second application of the second application icon.
In the specific implementation, processor 501 described in the embodiment of the present invention and the executable present invention of memory 502 are implemented
Implementation described in the first embodiment and second embodiment of the delet method that example provides also can be performed the present invention and implement
The implementation of terminal described in example, details are not described herein.
For each embodiment of the method above-mentioned, for simple description, therefore, it is stated as a series of action combinations,
But those skilled in the art should understand that, the application is not limited by the described action sequence, because according to the application,
Certain some step can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, in specification
Described embodiment belongs to preferred embodiment, necessary to related movement and unit not necessarily the application.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
A kind of delet method disclosed by the embodiments of the present invention and terminal are described in detail above, it is above disclosed
Only present pre-ferred embodiments, of course, the scope of rights of the present invention cannot be limited by this, therefore according to right of the present invention
Equivalent variations made by it is required that, is still within the scope of the present invention.