HomeCLC FAQ - CLC Genomics Server and Command Line ToolsCLC Genomics ServerHow can I empty the recycling bin in a CLC Genomics Server File Location?

2.3. How can I empty the recycling bin in a CLC Genomics Server File Location?

There are two main types of recycle bin visible to users of the Workbench when logged into a CLC Genomics Server:

  • recycle bins in the Workbench data locations (one bin per location)

  • recycle bins in the Genomics Server file locations (one bin per location)

Each top level folder that one can see via the Workbench is a "location" of some sort - the ones with blue dots on them are Server file locations. The others are Workbench data locations. Every location has a single recycle bin.

Individuals can delete data within the recycle bins of their own Workbench data locations.

Only members of the administrator group, as defined on the CLC Genomics Server, can empty the recycle bin associated with CLC Genomics Server File Locations. This is because the recycle bin is a shared location for any given CLC Genomics  Server file location and many sites do not want all users to be able to access it directly, that is to be able to view things or delete other people's data.

One can thus empty recycle bins in CLC Genomics  Server locations by logging into the CLC Genomics Server via a CLC Workbench with a user that is a member of the admin group of the CLC Genomics Server,  right-clicking on the recycle bin for a given file system location and selecting "Empty recycle bin" to empty it.

To avoid logging in as an adminstrator to periodically empty all trash, one could set up a script making use of the CLC Command Line Tools to empty Genomics Server recycling bins  and run this as a cronjob. This allows the recycling bins to be emptied in a hands-off manner at a defined frequency.

A CLC Command Line Tools command for emptying a recycle bin would be of a form like:

$SERVERCMDPATH -S $HOST -P $PORT -U $USER -W $PASS -A empty_recycle_bin -t clc://server/$LOCATIONNAME

Here, SERVERCMD path refers to the path to the clcserver command, and LOCATIONNAME refers to the name of the Genomics Server file location that the command will empty the recycling bin of. The other parts of the command are explained in the user manual for the CLC Command Line Tools, which can be found here:

The CLC Command Line Tools manual can be found here:

http://www.clcbio.com/files/usermanuals/CLC_Server_Command_Line_Tools_User_Manual.pdf

The tools themselves can be downloaded from our website:

https://www.qiagenbioinformatics.com/products/clc-server-command-line-tools/

 

Knowledge Tags

This page was: Helpful | Not Helpful