Download or delete an app’s data store

If you need to download or delete the datastore for an app hosted on Slack’s managed infrastructure, you can use an API or the Slack command line interface (CLI). To do this, you’ll need to be a collaborator on the app.

Tip: If you can’t add yourself as a collaborator, ask the app developer to follow the steps below.

Download an app’s data store

Use an API

Use the CLI

  1. Download and install the Slack CLI (if you haven’t already). 
  2. From a terminal, change your working directory to the app’s project directory. 
  3. To download a single record from a data store, use the slack datastore get command. To download all records from a data store, use the slack datastore query --output json command. If your data store contains more than one page of records, you may need to use pagination to fetch all the records. 


Delete an app’s data store

Use an API

Use the CLI

  1. Download and install the Slack CLI (if you haven’t already). 
  2. From a terminal, change your working directory to the app’s project directory. 
  3. To delete a single record from a data store, use the slack datastore delete command. 
  4. To delete an entire data store, you have two options:

    •  Use the slack datastore query command to determine the IDs of all records to delete, then use slack datastore delete to delete them one at a time. 
    • Remove the data store from your app’s manifest and re-deploy your app using the slack deploy --force command to drop the data store table entirely. 
Who can use this feature?