NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: For each single-line code, replaced the Code Block macro with a Panel macro and Text to Copy macro.

...

  1. Run the following command:

    code
    Panel
    borderColorsilver
    borderStylesolid
    Clipboard
    AllowLineWraptrue

    dm_delete_collection

    [-r]

    <collection-path>


    The following table describes each parameter:

    ParameterDescription

    [-r]

    An optional parameter:

    • If you specify this parameter, the system deletes all the files and subcollections under the specified collection recursively.
    • If you do not specify this parameter, the system deletes the collection only if it is empty.
    <collection-path>
    A path within DME. Specify the collection that you want to delete.

    The system prompts you to confirm the deletion.

  2. Type Y and press Enter. If you specified the recursive (-r) parameter, the system asks whether you want to see the data that will be deleted. 
  3. Respond to the prompt and press Enter. The system lists or describes the data to be deleted and prompts you to confirm the deletion again.
  4. Type Y and press Enter. 

For example, the following command deletes the  /Example_Archive/downloads collection, all subcollections within that collection, and all files within those collections.

code
Panel
borderColorsilver
borderStylesolid
Clipboard
AllowLineWraptrue

dm_delete_collection

–r

/Example_Archive/downloads


For instructions on deleting an empty collection in the GUI, refer to Deleting a Collection via the GUI. To request deletion of data you did not create or older data, contact NCIDataVault@mail.nih.gov.