The invention discloses a
directory deletion method and device based on NAS, a
client and a
server, and belongs to the technical field of storage. In the method, after a first NAS
server in a distributed NAS
server cluster receives a batch deletion instruction which is sent by an NAS
client and indicates to delete a target
directory, a distributed deletion instruction for a plurality of sub-directories under the target
directory is generated, and the corresponding distributed deletion instruction is sent to an NAS server where the sub-directories are located. And sending a deletion completion response to the NAS
client. According to the method, the single batch deletion instruction is used for replacing a large number of readdir instructions and deletion instructions of the NAS
client side, the number of times of interaction between the NAS
client side and the NAS server can be greatly reduced, the computing resource overhead and the network bandwidth overhead of the NAS
client side are reduced, meanwhile, the situation that the NAS client side caches the
metadata of the target catalog is avoided, and the user experience is improved. Therefore, the consumption of memory resources of the NAS client is reduced.