Skip to content

Delete data files from Qlik Cloud

Overview

In this tutorial, you are going to learn how to delete data files individually, and in bulk.

Requirements

Note: The cURL examples in this tutorial show the command syntax for Windows Command Prompt. If you are using another command line interface, different syntax may be required for line continuation. You may also need to adjust the number and type of quotes surrounding the parameters and their values.

Variable substitution and vocabulary

Throughout this tutorial, variables will be used to communicate value placement. The variable substitution format is <VARIABLE_NAME>. Here is a list of variables referred to in this tutorial.

VariableDescription
<HOSTNAME>The hostname for the initial tenant created during account onboarding. Such as tenantname.region.qlikcloud.com.
<ACCESS_TOKEN>A bearer token for authorizing https requests to the <HOSTNAME> tenant. Can be an API key, or a token generated via an OAuth client.
<OAUTH_CLIENT_ID>An OAuth client ID for authorizing requests if using the platform SDK.
<OAUTH_CLIENT_SECRET>An OAuth client secret for authorizing requests if using the platform SDK.
<SPACE_ID>The ID of the shared space <SPACE_NAME>.
<CONNECTION_ID>The ID for the data file connection in <SPACE_NAME>.
<DATA_FILE_ID>The ID for the data file.

Delete a single data file

To delete a single data file in a space, you need to know the data file ID. You can retrieve this using the steps documented in the update data files tutorial. Once you have the data file ID, you can pass this to the delete endpoint to remove this data file from Qlik Cloud.

A 204 response confirms that the data file, as well as any associated datasets, has been deleted successfully.

Delete all data files in a space

The examples below accept <SPACE_ID> as input, and will remove all data files from the space when run.

A 204 response confirms that the data files, as well as any associated datasets, have been deleted successfully.

Was this page helpful?