This guide describes how to remove old WorkBench and Batch Edit data sets
[!caution]
This guide is intended for administrators. This requires full permissions to thespdataset
table in Security & Accounts. Make sure to be responsible and careful when removing data sets using this approach.
WorkBench and Batch Edit data sets can take up quite a large amount of space, so we recommend removing unused data sets after some period of time to free up space in the database.
To start, we need to import a query that searches the spdataset
table. This is the table that contains all of the data sets we are looking to clean up. If you have any questions about the import process, consult the guide Export and Import a Query.
-
Click on Queries
in the navigation menu.
-
Click on New in the bottom right of the dialog.
-
Click on Import in the bottom right of the dialog.
-
Download, then select and import the following query: Find WorkBench Data Sets.json
-
After it has been imported, you should see this query:
This returns the following information:
- Name: The name given to the data set. If this starts with “Backs”, that means it is the backup data set created automatically by Batch Edit for use with the rollback feature.
- ImportedFileName: If the data set was created from an external file, this is the name it had before import.
- UploadResult: This includes the status of the upload. If it includes
"success": true
, that means it has already been uploaded. This also includes information like the ID for the agent who uploaded it and the timestamp. - SpecifyUser: This is the name of the Specify User who currently “owns” this data set. It is not always the same as the one who initially created it as data sets can be transferred between users.
- CreatedByAgent: The name of the agent who created the data set.
- ModifiedByAgent: The name of the agent who last modified the data set.
- TimestampCreated: When the data set was created.
- TimestampModified: When the data set was last modified.
- CollectionName: The name of the collection in the database where this data set appears.
[!warning]
You will not be able to see the full contents of the data set from the query results. To see a data set in the WorkBench or Batch Edit interface, you will need to log into the account of the ‘Specify User’ who “owns” the data set and access it via the appropriate Collection.Running this will return a comprehensive list of all data sets across all collections in the database:
-
You can now use Browse In Forms or navigate to each result individually to review the contents and choose whether or not to Delete each data set.