Delete template¶
This article describes how to delete templates in ODM.
Requirements¶
- Configured odm-sdk. See Configured odm-sdk
- The user should have the "Manage organisation" permission and have Bearer Token or API token. See Getting a Genestack API token
Warning
- Currently the Default template CAN be deleted, which may cause issues, so please be careful.
- Only users with the “Manage organization” permission can delete templates.
- The script doesn’t check that the file with the provided accession actually exists so if nothing is deleted but the script runs correctly it will still output 'Success'.
- The script doesn’t check the type of the file so if a study’s accession is provided instead of a template’s accession the study will be deleted. However, for deletion of studies please use the script from how to delete a study
Instructions¶
To explore the full list of supported arguments use the following command:
- Before a template deletion all the studies which have this template set should be manually changed: another template which is not going to be deleted should be applied (for example, Default template). Apply template manually via the UI.
-
Run delete template script and follow its login instructions, replacing the host name with the name of the instance the script will apply to. The script will print “Success” or an error stacktrace in case of an error.
Where
GENESTACK_ENDPOINT_ADDRis the URL of the Genestack platform.