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; in case that information related to an extension of the file requested to be deleted is 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 whether the updated information related to the extension satisfies a hotness condition of the storage, wherein the hotness condition comprises at least one of a capacity-based hotness condition or a time-based hotness condition, wherein the capacity-based hotness condition comprises a sum of write capacities of data blocks after a data block of a specific file is stored in the storage and before being deleted, wherein the time-based hotness condition comprises a time at which the specific file written to the data block of the specific file is deleted, and wherein the processor is further configured to store another file having the same attribute of the extension in a same block of the storage based on the configured attribute of the extension, wherein the processor is further configured to receive the hotness condition from the storage based on an input requesting the hotness condition transmitted to the storage. 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; in case that information related to an extension of the file requested to be deleted is 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 whether the updated information related to the extension satisfies a hotness condition of the storage, wherein the hotness condition comprises at least one of a capacity-based hotness condition or a time-based hotness condition, wherein the capacity-based hotness condition comprises a sum of write capacities of data blocks after a data block of a specific file is stored in the storage and before being deleted, wherein the time-based hotness condition comprises a time at which the specific file written to the data block of the specific file is deleted, and wherein the processor is further configured to store another file having the same attribute of the extension in a same block of the storage based on the configured attribute of the extension, wherein the processor is further configured to receive the hotness condition from the storage based on an input requesting the hotness condition transmitted to the storage. based on a request to delete a file, identify use attribute information about the file requested to be deleted; in case that information related to an extension of the file requested to be deleted is 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 whether the updated information related to the extension satisfies a hotness condition of the storage, wherein the hotness condition comprises at least one of a capacity-based hotness condition or a time-based hotness condition, wherein the capacity-based hotness condition comprises a sum of write capacities of data blocks after a data block of a specific file is stored in the storage and before being deleted, wherein the time-based hotness condition comprises a time at which the specific file written to the data block of the specific file is deleted, and wherein the processor is further configured to store another file having the same attribute of the extension in a same block of the storage based on the configured attribute of the extension, wherein the processor is further configured to receive the hotness condition from the storage based on an input requesting the hotness condition transmitted to the storage.