| CPC G06F 3/0652 (2013.01) [G06F 3/0611 (2013.01); G06F 3/0679 (2013.01)] | 16 Claims |

|
1. An electronic device comprising:
a memory comprising a storage; and
a processor operatively connected to the memory,
wherein the processor is configured to:
based on a request to delete a file, identify use attribute information about the file requested to be deleted;
based on information related to an extension of the file requested to be deleted, the information being stored in the memory, update the information related to the extension of the file requested to be deleted, based on the use attribute information; and
configure an attribute of the extension of the file requested to be deleted, based on the updated information related to the extension of the file requested to be deleted and a hotness condition of the storage,
wherein the use attribute information of the file requested to be deleted comprises at least one of:
a deletion time of the file requested to be deleted, wherein the deletion time is obtained based on a time that the file requested to be deleted is generated in the storage and a time requested to be deleted, or
write capacity of the file requested to be deleted in the storage, and
wherein the extension of the file represents at least one type of the file,
wherein the attribute of the extension comprises a hot file and a cold file,
wherein the hot file corresponds to a file invalidated by being deleted or overwritten from the memory within a designated time, and
wherein the cold file corresponds to a file that is not deleted or overwritten from the memory at a time exceeding the designated time.
|