<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to delete spaces in Qlik Cloud Services&amp;nbsp;using Qlik Automate in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-delete-spaces-in-Qlik-Cloud-Services-nbsp-using-Qlik/ta-p/2091980</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This article explains how you can &lt;/SPAN&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Delete spaces in Qlik Cloud Services&amp;nbsp;using Qlik Automate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;. Multiple spaces can be deleted during one run. As when deleting a space via the user interface, this will also delete any apps, data files or other content within the space(s) using the relevant blocks for those content types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For information about&amp;nbsp;&lt;EM&gt;spaces&amp;nbsp;&lt;/EM&gt;in Qlik Cloud, see &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/navigating-spaces.htm" target="_blank" rel="noopener"&gt;Navigating Spaces&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;This automation is not designed to be triggered using a webhook or on a schedule. It has been designed with manual user input in mind and requires multiple confirmations.&lt;BR /&gt;&lt;BR /&gt;If you use your own automation to delete spaces, know that deleting a space via the space blocks will not delete the content in the space, and will instead result in that content being orphaned in the tenant. Leverage the examples in this automation to first delete content from spaces prior to deleting the space.&lt;BR /&gt;&lt;BR /&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-372333848"&gt;&lt;STRONG&gt;&lt;FONT color="#339966" data-darkreader-inline-color=""&gt;Prerequisites&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#000000" data-darkreader-inline-color=""&gt;This automation assumes you have a &lt;FONT color="#339966"&gt;&lt;STRONG&gt;TenantAdmin&lt;/STRONG&gt; &lt;/FONT&gt;role.&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The automation is divided into five sections:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Start&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Confirm selected spaces&lt;/LI&gt;
&lt;LI&gt;Delete apps&lt;/LI&gt;
&lt;LI&gt;Delete data files&lt;/LI&gt;
&lt;LI&gt;Delete spaces&lt;/LI&gt;
&lt;LI&gt;Finalize&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Start&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Start&amp;nbsp;&lt;/STRONG&gt;section retrieves all available spaces and prompts you to select what spaces you want to delete.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Overview:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Spaces Automation Overview.png" style="width: 450px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115985i85CB4A4103E66F0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Spaces Automation Overview.png" alt="Delete Spaces Automation Overview.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT color="#000000" data-darkreader-inline-color=""&gt;The &lt;STRONG&gt;List Spaces&lt;/STRONG&gt; block retrieves all spaces on the tenant that you have access to.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;The &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block filters&lt;SPAN&gt;&amp;nbsp;spaces that you have the &lt;EM&gt;delete&lt;/EM&gt; permission to.&lt;BR /&gt;&lt;BR /&gt;This is achieved using a condition configured such as this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Condition&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;If&lt;FONT face="courier new,courier"&gt; meta.actions&lt;/FONT&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;list contains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;delete&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List Spaces.png" style="width: 264px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112272iAAF5AB5FA6F6701D/image-size/large?v=v2&amp;amp;px=999" role="button" title="List Spaces.png" alt="List Spaces.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Transform List&lt;/STRONG&gt; block reformats the space list to improve readability in the input block (id, name and type are kept).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block adds a prompt for selecting the spaces to delete.&lt;BR /&gt;&lt;BR /&gt;Multi-selection is allowed:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Which space would you like to delete.png" style="width: 374px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112274iCA744A3B66C99A51/image-size/large?v=v2&amp;amp;px=999" role="button" title="Which space would you like to delete.png" alt="Which space would you like to delete.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block moves to the next section of the automation.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Before the&amp;nbsp;&lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Confirm selected spaces&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This section provides the possibility to review the&amp;nbsp;selected spaces&amp;nbsp;before deleting them.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Confirm Selected Spaces Part One.png" style="width: 480px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115991i265B4318B18552B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Confirm Selected Spaces Part One.png" alt="Confirm Selected Spaces Part One.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Confirm Selected Spaces Part Two.png" style="width: 544px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115990i11A55CB42D260338/image-size/large?v=v2&amp;amp;px=999" role="button" title="Confirm Selected Spaces Part Two.png" alt="Confirm Selected Spaces Part Two.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Label&lt;/STRONG&gt; block is named &lt;EM&gt;Confirm Selected Spaces&lt;/EM&gt; and this must also be configured in the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block from the previous section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over selected spaces.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within the loop, a &lt;STRONG&gt;List Apps&lt;/STRONG&gt; block retrieves apps in the space. The output of this block is stored in the variable &lt;FONT face="courier new,courier"&gt;appList&amp;nbsp;&lt;/FONT&gt;which is used for reviewing what apps exist within the spaces that will be deleted.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To retrieve the &lt;FONT face="courier new,courier"&gt;connectionId &lt;/FONT&gt;for data files in this space, a &lt;STRONG&gt;Raw API Request&lt;/STRONG&gt; block is used. The path in the block is configured to use data-files/connections and the HTTP method is set to GET. A query parameter is also added where the key is set to &lt;FONT face="courier new,courier"&gt;spaceId&lt;/FONT&gt; and the value is set to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;{$.loop.item}&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;FONT face="courier new,courier"&gt;connectionId&lt;/FONT&gt; retrieved in the previous step is used to retrieve data files in this space using the List &lt;STRONG&gt;Data Files&lt;/STRONG&gt; block. The output of this block is stored in the variable &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;dataFileList &lt;/FONT&gt;&lt;SPAN&gt;which is used to review the data files that exist within the spaces flagged for deletion.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;After the loop, an &lt;STRONG&gt;Output&lt;/STRONG&gt; block displays which spaces will be deleted.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;We use an &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block to allow user confirmation before deleting apps, data files and other content within the selected spaces:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spaces to be deleted.png" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115661iD5ABDFABC9D2D537/image-size/large?v=v2&amp;amp;px=999" role="button" title="Spaces to be deleted.png" alt="Spaces to be deleted.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block moves to the next section of the automation. &lt;BR /&gt;&lt;BR /&gt;Before the&amp;nbsp;&lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt; must already exist. This is done in the next section.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete apps&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all existing apps inside the space(s). A space cannot be removed before all apps are deleted.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Apps Step.png" style="width: 394px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115992i489A68917906418A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Apps Step.png" alt="Delete Apps Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks how many apps are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;&lt;/SPAN&gt;items in the variable &lt;FONT face="courier new,courier"&gt;appList&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The block &lt;STRONG&gt;Get App Information&lt;/STRONG&gt; retrieves the app name based on the app id.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The app is deleted using the block &lt;STRONG&gt;Delete App&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted app status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The delete apps status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deleted app status.png" style="width: 270px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112279iFD2512103A4754C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleted app status.png" alt="deleted app status.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The delete apps status will also be presented using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="update run title.png" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112280iF2531A37E1E09628/image-size/large?v=v2&amp;amp;px=999" role="button" title="update run title.png" alt="update run title.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;moves on to the next section of the automation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Before the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete data files&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all data files within the selected space(s).&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Data Files Step.png" style="width: 399px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115993i604E41E88E4A0903/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Data Files Step.png" alt="Delete Data Files Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks of how many data files are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;items in the variable &lt;FONT face="courier new,courier"&gt;dataFileList&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To retrieve the data file name for datafiles we use a &lt;STRONG&gt;Raw API Request&lt;/STRONG&gt; block configured such as this:&lt;BR /&gt;&lt;BR /&gt;Path:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;data-files/{ $.loop3.item }&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;HTTP Method: &lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raw api request path and method.png" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112282i1C15630805BFD7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="raw api request path and method.png" alt="raw api request path and method.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The data file is deleted using the block &lt;STRONG&gt;Delete Data File&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted data file status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The deleted data file status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deleted data files.png" style="width: 269px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112283iFBE491DE28136713/image-size/large?v=v2&amp;amp;px=999" role="button" title="Deleted data files.png" alt="Deleted data files.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The delete data file status will also be presented using the block Update Run Title:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deleted ata files update run title block.png" style="width: 260px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112284i80F07A8BF4682D27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Deleted ata files update run title block.png" alt="Deleted ata files update run title block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Finally, a &lt;STRONG&gt;Go To Label block&lt;/STRONG&gt; moves on to the next section of the automation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Before the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete spaces&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all selected spaces.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Spaces Step.png" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115994iD2B53149913CE5B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Spaces Step.png" alt="Delete Spaces Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks of how many spaces are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;selected spaces.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;To retrieve the name of the space we use a &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block.&lt;/LI&gt;
&lt;LI&gt;The space is deleted using the block &lt;STRONG&gt;Delete Space&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted space status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The delete space status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deleted space.png" style="width: 179px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112286i4978040F2B588441/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleted space.png" alt="deleted space.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The delete space status will also be presented using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Finalize&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This section wraps up the automation and updates the final status of the automation run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Finalize the Automation.png" style="width: 332px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115995i561015F0D9F78FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Finalize the Automation.png" alt="Finalize the Automation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A summary of how many apps, data files and apps have been deleted is presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The summary is presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt;&amp;nbsp;block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="summary of deleted items.png" style="width: 262px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112288i90BCC8428D3A5FD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="summary of deleted items.png" alt="summary of deleted items.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The summary is also returned using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Update Run Title summary.png" style="width: 249px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112289i9D29B61C088725E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Update Run Title summary.png" alt="Update Run Title summary.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-818816283"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Running the Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;On run, choose which space to delete. Be careful &lt;EM&gt;not&lt;/EM&gt; to select&amp;nbsp;spaces you want to keep:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select what space to delete.png" style="width: 370px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112290i14FCA39AE1DDD889/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select what space to delete.png" alt="Select what space to delete.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Once you have selected the space or spaces, you are prompted to confirm the deletion of apps, data files and other content that exists within this space or spaces. If you don't want to proceed you can stop the automation. If you want to proceed you need to click on the green confirmation button:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spaces to be deleted.png" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115662iB51C431CFDA86DF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Spaces to be deleted.png" alt="Spaces to be deleted.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/navigating-spaces.htm" target="_blank" rel="noopener"&gt;Navigating Spaces&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/managing-shared-spaces.htm" target="_blank" rel="noopener"&gt;Managing permissions in shared spaces&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/managing-managed-spaces.htm" target="_blank" rel="noopener"&gt;Managing permissions in managed spaces&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Automate" id="qlikApplicationAutomation"&gt;&lt;/LI-PRODUCT&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Cloud" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 14:32:13 GMT</pubDate>
    <dc:creator>J_Lindberg</dc:creator>
    <dc:date>2025-05-23T14:32:13Z</dc:date>
    <item>
      <title>How to delete spaces in Qlik Cloud Services using Qlik Automate</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-delete-spaces-in-Qlik-Cloud-Services-nbsp-using-Qlik/ta-p/2091980</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This article explains how you can &lt;/SPAN&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Delete spaces in Qlik Cloud Services&amp;nbsp;using Qlik Automate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;. Multiple spaces can be deleted during one run. As when deleting a space via the user interface, this will also delete any apps, data files or other content within the space(s) using the relevant blocks for those content types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For information about&amp;nbsp;&lt;EM&gt;spaces&amp;nbsp;&lt;/EM&gt;in Qlik Cloud, see &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/navigating-spaces.htm" target="_blank" rel="noopener"&gt;Navigating Spaces&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;This automation is not designed to be triggered using a webhook or on a schedule. It has been designed with manual user input in mind and requires multiple confirmations.&lt;BR /&gt;&lt;BR /&gt;If you use your own automation to delete spaces, know that deleting a space via the space blocks will not delete the content in the space, and will instead result in that content being orphaned in the tenant. Leverage the examples in this automation to first delete content from spaces prior to deleting the space.&lt;BR /&gt;&lt;BR /&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-372333848"&gt;&lt;STRONG&gt;&lt;FONT color="#339966" data-darkreader-inline-color=""&gt;Prerequisites&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#000000" data-darkreader-inline-color=""&gt;This automation assumes you have a &lt;FONT color="#339966"&gt;&lt;STRONG&gt;TenantAdmin&lt;/STRONG&gt; &lt;/FONT&gt;role.&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The automation is divided into five sections:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Start&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Confirm selected spaces&lt;/LI&gt;
&lt;LI&gt;Delete apps&lt;/LI&gt;
&lt;LI&gt;Delete data files&lt;/LI&gt;
&lt;LI&gt;Delete spaces&lt;/LI&gt;
&lt;LI&gt;Finalize&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Start&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Start&amp;nbsp;&lt;/STRONG&gt;section retrieves all available spaces and prompts you to select what spaces you want to delete.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Overview:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Spaces Automation Overview.png" style="width: 450px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115985i85CB4A4103E66F0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Spaces Automation Overview.png" alt="Delete Spaces Automation Overview.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT color="#000000" data-darkreader-inline-color=""&gt;The &lt;STRONG&gt;List Spaces&lt;/STRONG&gt; block retrieves all spaces on the tenant that you have access to.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;The &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block filters&lt;SPAN&gt;&amp;nbsp;spaces that you have the &lt;EM&gt;delete&lt;/EM&gt; permission to.&lt;BR /&gt;&lt;BR /&gt;This is achieved using a condition configured such as this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Condition&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;If&lt;FONT face="courier new,courier"&gt; meta.actions&lt;/FONT&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;list contains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;delete&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List Spaces.png" style="width: 264px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112272iAAF5AB5FA6F6701D/image-size/large?v=v2&amp;amp;px=999" role="button" title="List Spaces.png" alt="List Spaces.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Transform List&lt;/STRONG&gt; block reformats the space list to improve readability in the input block (id, name and type are kept).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block adds a prompt for selecting the spaces to delete.&lt;BR /&gt;&lt;BR /&gt;Multi-selection is allowed:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Which space would you like to delete.png" style="width: 374px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112274iCA744A3B66C99A51/image-size/large?v=v2&amp;amp;px=999" role="button" title="Which space would you like to delete.png" alt="Which space would you like to delete.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block moves to the next section of the automation.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Before the&amp;nbsp;&lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Confirm selected spaces&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This section provides the possibility to review the&amp;nbsp;selected spaces&amp;nbsp;before deleting them.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Confirm Selected Spaces Part One.png" style="width: 480px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115991i265B4318B18552B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Confirm Selected Spaces Part One.png" alt="Confirm Selected Spaces Part One.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Confirm Selected Spaces Part Two.png" style="width: 544px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115990i11A55CB42D260338/image-size/large?v=v2&amp;amp;px=999" role="button" title="Confirm Selected Spaces Part Two.png" alt="Confirm Selected Spaces Part Two.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Label&lt;/STRONG&gt; block is named &lt;EM&gt;Confirm Selected Spaces&lt;/EM&gt; and this must also be configured in the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block from the previous section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over selected spaces.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within the loop, a &lt;STRONG&gt;List Apps&lt;/STRONG&gt; block retrieves apps in the space. The output of this block is stored in the variable &lt;FONT face="courier new,courier"&gt;appList&amp;nbsp;&lt;/FONT&gt;which is used for reviewing what apps exist within the spaces that will be deleted.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To retrieve the &lt;FONT face="courier new,courier"&gt;connectionId &lt;/FONT&gt;for data files in this space, a &lt;STRONG&gt;Raw API Request&lt;/STRONG&gt; block is used. The path in the block is configured to use data-files/connections and the HTTP method is set to GET. A query parameter is also added where the key is set to &lt;FONT face="courier new,courier"&gt;spaceId&lt;/FONT&gt; and the value is set to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;{$.loop.item}&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;FONT face="courier new,courier"&gt;connectionId&lt;/FONT&gt; retrieved in the previous step is used to retrieve data files in this space using the List &lt;STRONG&gt;Data Files&lt;/STRONG&gt; block. The output of this block is stored in the variable &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;dataFileList &lt;/FONT&gt;&lt;SPAN&gt;which is used to review the data files that exist within the spaces flagged for deletion.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;After the loop, an &lt;STRONG&gt;Output&lt;/STRONG&gt; block displays which spaces will be deleted.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;We use an &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block to allow user confirmation before deleting apps, data files and other content within the selected spaces:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spaces to be deleted.png" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115661iD5ABDFABC9D2D537/image-size/large?v=v2&amp;amp;px=999" role="button" title="Spaces to be deleted.png" alt="Spaces to be deleted.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block moves to the next section of the automation. &lt;BR /&gt;&lt;BR /&gt;Before the&amp;nbsp;&lt;STRONG&gt;Go To Label&lt;/STRONG&gt; block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt; must already exist. This is done in the next section.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete apps&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all existing apps inside the space(s). A space cannot be removed before all apps are deleted.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Apps Step.png" style="width: 394px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115992i489A68917906418A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Apps Step.png" alt="Delete Apps Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks how many apps are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;&lt;/SPAN&gt;items in the variable &lt;FONT face="courier new,courier"&gt;appList&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The block &lt;STRONG&gt;Get App Information&lt;/STRONG&gt; retrieves the app name based on the app id.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The app is deleted using the block &lt;STRONG&gt;Delete App&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted app status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The delete apps status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deleted app status.png" style="width: 270px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112279iFD2512103A4754C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleted app status.png" alt="deleted app status.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The delete apps status will also be presented using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="update run title.png" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112280iF2531A37E1E09628/image-size/large?v=v2&amp;amp;px=999" role="button" title="update run title.png" alt="update run title.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;moves on to the next section of the automation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Before the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete data files&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all data files within the selected space(s).&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Data Files Step.png" style="width: 399px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115993i604E41E88E4A0903/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Data Files Step.png" alt="Delete Data Files Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks of how many data files are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;items in the variable &lt;FONT face="courier new,courier"&gt;dataFileList&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To retrieve the data file name for datafiles we use a &lt;STRONG&gt;Raw API Request&lt;/STRONG&gt; block configured such as this:&lt;BR /&gt;&lt;BR /&gt;Path:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;data-files/{ $.loop3.item }&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;HTTP Method: &lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raw api request path and method.png" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112282i1C15630805BFD7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="raw api request path and method.png" alt="raw api request path and method.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The data file is deleted using the block &lt;STRONG&gt;Delete Data File&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted data file status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The deleted data file status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deleted data files.png" style="width: 269px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112283iFBE491DE28136713/image-size/large?v=v2&amp;amp;px=999" role="button" title="Deleted data files.png" alt="Deleted data files.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The delete data file status will also be presented using the block Update Run Title:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deleted ata files update run title block.png" style="width: 260px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112284i80F07A8BF4682D27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Deleted ata files update run title block.png" alt="Deleted ata files update run title block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Finally, a &lt;STRONG&gt;Go To Label block&lt;/STRONG&gt; moves on to the next section of the automation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Before the &lt;STRONG&gt;Go To Label&lt;/STRONG&gt;&amp;nbsp;block can be configured, the targeted &lt;STRONG&gt;Label&lt;/STRONG&gt;&amp;nbsp;must already exist. This is done in the next section.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Delete spaces&lt;/STRONG&gt;&lt;/H3&gt;
&lt;BLOCKQUOTE class="quote"&gt;Once deleted, spaces, apps, or data files cannot be recovered.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This section deletes all selected spaces.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete Spaces Step.png" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115994iD2B53149913CE5B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete Spaces Step.png" alt="Delete Spaces Step.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The numeric variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;tracks of how many spaces are deleted.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;Loop&lt;/STRONG&gt; block loops over the&amp;nbsp;selected spaces.&lt;/LI&gt;
&lt;LI&gt;The variable &lt;FONT face="courier new,courier"&gt;iter&amp;nbsp;&lt;/FONT&gt;is increased by &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; per loop iteration.&lt;/LI&gt;
&lt;LI&gt;To retrieve the name of the space we use a &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block.&lt;/LI&gt;
&lt;LI&gt;The space is deleted using the block &lt;STRONG&gt;Delete Space&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;A deleted space status will be presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The delete space status will be presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deleted space.png" style="width: 179px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112286i4978040F2B588441/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleted space.png" alt="deleted space.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The delete space status will also be presented using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId--482522488"&gt;&lt;STRONG style="color: #339966; font-family: inherit;"&gt;Finalize&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This section wraps up the automation and updates the final status of the automation run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Finalize the Automation.png" style="width: 332px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115995i561015F0D9F78FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Finalize the Automation.png" alt="Finalize the Automation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Setting it up:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A summary of how many apps, data files and apps have been deleted is presented using the string variable &lt;FONT face="courier new,courier"&gt;message&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;The summary is presented using an &lt;STRONG&gt;Output&lt;/STRONG&gt;&amp;nbsp;block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="summary of deleted items.png" style="width: 262px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112288i90BCC8428D3A5FD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="summary of deleted items.png" alt="summary of deleted items.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The summary is also returned using the block &lt;STRONG&gt;Update Run Title&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Update Run Title summary.png" style="width: 249px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112289i9D29B61C088725E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Update Run Title summary.png" alt="Update Run Title summary.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-818816283"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Running the Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;On run, choose which space to delete. Be careful &lt;EM&gt;not&lt;/EM&gt; to select&amp;nbsp;spaces you want to keep:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select what space to delete.png" style="width: 370px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112290i14FCA39AE1DDD889/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select what space to delete.png" alt="Select what space to delete.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Once you have selected the space or spaces, you are prompted to confirm the deletion of apps, data files and other content that exists within this space or spaces. If you don't want to proceed you can stop the automation. If you want to proceed you need to click on the green confirmation button:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spaces to be deleted.png" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115662iB51C431CFDA86DF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Spaces to be deleted.png" alt="Spaces to be deleted.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/navigating-spaces.htm" target="_blank" rel="noopener"&gt;Navigating Spaces&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/managing-shared-spaces.htm" target="_blank" rel="noopener"&gt;Managing permissions in shared spaces&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Spaces/managing-managed-spaces.htm" target="_blank" rel="noopener"&gt;Managing permissions in managed spaces&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Automate" id="qlikApplicationAutomation"&gt;&lt;/LI-PRODUCT&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Cloud" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 14:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-delete-spaces-in-Qlik-Cloud-Services-nbsp-using-Qlik/ta-p/2091980</guid>
      <dc:creator>J_Lindberg</dc:creator>
      <dc:date>2025-05-23T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete spaces in Qlik Cloud Services using Qlik Automate</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-delete-spaces-in-Qlik-Cloud-Services-nbsp-using-Qlik/tac-p/2534486#M16492</link>
      <description>&lt;P&gt;I was referred to this article, because I could not delete a data space albeit being tenant admin and the owner of the space. The automation works indeed. But will it be possible to just delete the spaces via the normal administration user interface? The solution via the automation feels more like a work around.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 16:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-delete-spaces-in-Qlik-Cloud-Services-nbsp-using-Qlik/tac-p/2534486#M16492</guid>
      <dc:creator>bjoern</dc:creator>
      <dc:date>2025-10-27T16:30:56Z</dc:date>
    </item>
  </channel>
</rss>

