Skip to main content
NetApp Knowledge Base

Failed to delete qtree. Reason: qtree contains files

Views:
3,499
Visibility:
Public
Votes:
4
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

  • ONTAP 9
  • Clustered Data ONTAP 8.3
  • qtrees

Issue

When deleting a qtree using -force true, the command fails stating to use -force true:

Cluster::*> qtree delete -force true -vserver <vServer> -volume <volume> -qtree <qtree>

Warning: Are you sure you want to delete qtree "<qtree>" in volume "<volume>" Vserver "<vServer>"? {y|n}: y

Warning: This will delete all files inside qtree <qtree> volume <volume> Vserver <vServer> before removing the qtree. Do you want to proceed?
{y|n}: y
[Job 14186] Job is queued: Delete qtree <qtree> in volume <volume> Vserver <vServer>.

prod::*> job history show -id <ID>
                              Owning
Time           Node           Vserver    Name                 Event     Job ID
-------------- -------------- ---------- -------------------- --------- ------
02/15 09:31:10 Node     vServer Qtree Delete     Failed     ID
     Description: Delete qtree <qtree> in volume
                  <volume> Vserver <vServer>
      Completion: Failed to delete qtree "<qtree>" in
                  volume "<volume>" on Vserver
                  "<vServer>". Reason: Qtree contains
              files. Set the "force" parameter to "true"
                  to permanently delete all of the files and
    the Qtree. The export policy "" has been
                  unassigned from the qtree and it now uses
                  the parent volume's export policy.
02/15 09:31:05 <node> <vServer> Qtree Delete     Running    ID
     Description: Delete qtree <qtree> in volume
                  <volume> Vserver <vServer>
2 entries were displayed.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.