<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="canonical" href="https://OLC-LOC-Bioinformatics.github.io/AzureStorage/delete/"> <link rel="shortcut icon" href="../img/favicon.ico"> <title>Delete - OLC Bioinformatics Azure Storage</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" /> <link rel="stylesheet" href="../css/theme.css" /> <link rel="stylesheet" href="../css/theme_extra.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" /> <script> // Current page data var mkdocs_page_name = "Delete"; var mkdocs_page_input_path = "delete.md"; var mkdocs_page_url = "/AzureStorage/delete/"; </script> <script src="../js/jquery-2.1.1.min.js" defer></script> <script src="../js/modernizr-2.8.3.min.js" defer></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href=".." class="icon icon-home"> OLC Bioinformatics Azure Storage</a> <div role="search"> <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" title="Type search term here" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="..">Home</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../install/">Installation</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../credentials/">Credentials</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../upload/">Upload</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../sas_url/">SAS URL</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../move/">Move</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../download/">Download</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../set_tier/">Set Tier</a> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal current" href="./">Delete</a> <ul class="current"> <li class="toctree-l2"><a class="reference internal" href="#general-usage">General usage</a> </li> <li class="toctree-l2"><a class="reference internal" href="#azuredelete-container">AzureDelete container</a> <ul> <li class="toctree-l3"><a class="reference internal" href="#required-arguments">Required arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#optional-arguments">Optional arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#example-command">Example command:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#usage">Usage</a> </li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="#azuredelete-file">AzureDelete file</a> <ul> <li class="toctree-l3"><a class="reference internal" href="#required-arguments_1">Required arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#optional-arguments_1">Optional arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#example-commands">Example commands:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#usage_1">Usage</a> </li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="#azuredelete-folder">AzureDelete folder</a> <ul> <li class="toctree-l3"><a class="reference internal" href="#required-arguments_2">Required arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#optional-arguments_2">Optional arguments:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#example-commands_1">Example commands:</a> </li> <li class="toctree-l3"><a class="reference internal" href="#usage_2">Usage</a> </li> </ul> </li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../automate/">Automate</a> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../list/">List</a> </li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="..">OLC Bioinformatics Azure Storage</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="..">Docs</a> »</li> <li>Delete</li> <li class="wy-breadcrumbs-aside"> <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/edit/main/docs/delete.md" class="icon icon-github"> Edit on GitHub</a> </li> </ul> <hr/> </div> <div role="main"> <div class="section"> <h2 id="azuredelete">AzureDelete</h2> <p>Delete containers, files, or folders from your Azure storage account</p> <p>Choose either the <a href="#azuredelete-container"><code>container</code></a>, <a href="#azuredelete-file"><code>file</code></a>, or <a href="#azuredelete-folder"><code>folder</code></a> functionality</p> <h4 id="general-usage">General usage</h4> <pre><code>usage: AzureDelete [-h] {container,file,folder} ... Move and/or delete containers, files, or folders in Azure storage optional arguments: -h, --help show this help message and exit Available functionality: {container,file,folder} container Delete a container in Azure storage file Delete a file in Azure storage folder Delete a folder in Azure storage </code></pre> <h3 id="azuredelete-container">AzureDelete container</h3> <p>Delete a container from your Azure storage account</p> <h4 id="required-arguments">Required arguments:</h4> <ul> <li>container name</li> <li>account name</li> </ul> <h4 id="optional-arguments">Optional arguments:</h4> <ul> <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li> <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li> </ul> <h4 id="example-command">Example command:</h4> <p>These commands will use <code>container-name</code> as the name of the container and <code>account_name</code> as the name of the storage account</p> <p>To delete a container from your Azure storage account</p> <p><code>AzureDelete container -a account_name -c container-name</code></p> <h4 id="usage">Usage</h4> <pre><code>usage: AzureDelete container [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] Delete a container in Azure storage optional arguments: -h, --help show this help message and exit -c CONTAINER_NAME, --container_name CONTAINER_NAME Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME Name of the Azure storage account -p PASSPHRASE, --passphrase PASSPHRASE The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is "AzureStorage". -v VERBOSITY, --verbosity VERBOSITY Set the logging level. Options are debug, info, warning, error, and critical. Default is info. </code></pre> <h3 id="azuredelete-file">AzureDelete file</h3> <p>Delete a file from your Azure storage account</p> <h4 id="required-arguments_1">Required arguments:</h4> <ul> <li>container name</li> <li>account name</li> <li>file name</li> </ul> <h4 id="optional-arguments_1">Optional arguments:</h4> <ul> <li>retention time: time to retain deleted files. Default is 8 days</li> <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li> <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li> </ul> <h4 id="example-commands">Example commands:</h4> <p>These commands will use <code>container-name</code> as the name of the container and <code>account_name</code> as the name of the storage account</p> <p>To delete the file <code>file_name.gz</code> from your Azure storage account</p> <p><code>AzureDelete file -a account_name -c container-name -f file_name.gz</code></p> <p>To delete the file <code>file_name.gz</code> nested in folder outputs from your Azure storage account, and retain it for 10 days</p> <p><code>AzureDelete file -a account_name -c container-name -f outputs/file_name.gz -r 10</code></p> <h4 id="usage_1">Usage</h4> <pre><code>usage: AzureDelete file [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] -f FILE [-r RETENTION_TIME] Delete a file in Azure storage optional arguments: -h, --help show this help message and exit -c CONTAINER_NAME, --container_name CONTAINER_NAME Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME Name of the Azure storage account -p PASSPHRASE, --passphrase PASSPHRASE The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is "AzureStorage". -v VERBOSITY, --verbosity VERBOSITY Set the logging level. Options are debug, info, warning, error, and critical. Default is info. -f FILE, --file FILE Name of blob file to delete in Azure storage. e.g. 2022-SEQ-0001_S1_L001_R1_001.fastq.gz -r RETENTION_TIME, --retention_time RETENTION_TIME Retention time for deleted files. Default is 8 days. Must be between 1 and 365 </code></pre> <h3 id="azuredelete-folder">AzureDelete folder</h3> <p>Delete a folder from your Azure storage account</p> <h4 id="required-arguments_2">Required arguments:</h4> <ul> <li>container name</li> <li>account name</li> <li>folder name</li> </ul> <h4 id="optional-arguments_2">Optional arguments:</h4> <ul> <li>retention time: time to retain deleted files in the folder. Default is 8 days</li> <li>passphrase used to store your connection string in the system keyring (default is AzureStorage)</li> <li>verbosity: set the logging level. Options are debug,info,warning,error,critical. Default is info</li> </ul> <h4 id="example-commands_1">Example commands:</h4> <p>These commands will use <code>container-name</code> as the name of the container and <code>account_name</code> as the name of the storage account</p> <p>To delete the folder <code>folder_name</code> from your Azure storage account</p> <p><code>AzureDelete folder -a account_name -c container-name -f folder_name</code></p> <p>To delete the folder <code>folder_name</code> nested in folder outputs from your Azure storage account, and retain it for 10 days</p> <p><code>AzureDelete folder -a account_name -c container-name -f outputs/folder_name -r 10</code></p> <h4 id="usage_2">Usage</h4> <pre><code>usage: AzureDelete folder [-h] -c CONTAINER_NAME -a ACCOUNT_NAME [-p PASSPHRASE] [-v VERBOSITY] -f FOLDER [-r RETENTION_TIME] Delete a folder in Azure storage optional arguments: -h, --help show this help message and exit -c CONTAINER_NAME, --container_name CONTAINER_NAME Name of the Azure storage container. Note that container names must be lowercase, between 3 and 63 characters, start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. -a ACCOUNT_NAME, --account_name ACCOUNT_NAME Name of the Azure storage account -p PASSPHRASE, --passphrase PASSPHRASE The passphrase to use when encrypting the azure storage-specific connection string to the system keyring. Default is "AzureStorage". -v VERBOSITY, --verbosity VERBOSITY Set the logging level. Options are debug, info, warning, error, and critical. Default is info. -f FOLDER, --folder FOLDER Name of folder to delete in Azure storage. e.g. InterOp -r RETENTION_TIME, --retention_time RETENTION_TIME Retention time for deleted files. Default is 8 days </code></pre> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="../automate/" class="btn btn-neutral float-right" title="Automate">Next <span class="icon icon-circle-arrow-right"></span></a> <a href="../set_tier/" class="btn btn-neutral" title="Set Tier"><span class="icon icon-circle-arrow-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <!-- Copyright etc --> </div> Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <div class="rst-versions" role="note" aria-label="versions"> <span class="rst-current-version" data-toggle="rst-current-version"> <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a> <span><a href="../set_tier/" style="color: #fcfcfc;">« Previous</a></span> <span style="margin-left: 15px"><a href="../automate/" style="color: #fcfcfc">Next »</a></span> </span> </div> <script>var base_url = '..';</script> <script src="../js/theme.js" defer></script> <script src="../search/main.js" defer></script> <script defer> window.onload = function () { SphinxRtdTheme.Navigation.enable(true); }; </script> </body> </html>