The invention relates to the technical field of data
storage management, and provides a method and equipment for quickly deleting a
directory and a file, and the method comprises the following steps: setting
recovery configuration through a management interface of NAS (
Network Attached Storage) equipment, and creating a
recovery directory according to the
recovery configuration; in response to the recovery moving command, recovering and moving the
directory entry of the target directory or file into the recovery directory; and performing expiration judgment, structure cleaning and
physical space recycling on the
data content moved into the recycling directory according to the recycling configuration through asynchronous recycling operation. According to the method and the equipment for quickly deleting the directory and the file, the deletion operation efficiency sensed by the
client can be improved, the operation universality and compatibility of the
client can be completely kept, additional deployment is not needed, a convenient and low-cost
data recovery mechanism is provided, the
operation safety is enhanced, smooth unloading and efficient utilization of
system resources are realized, and the user experience is improved. Performance
impact is avoided, flexible and configurable management strategies are provided, diversified
business requirements are met, and reliability and
data consistency of the recovery process are ensured.