Download or delete an app's datastore

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 datastore

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 datastore, use the slack datastore get command. To download all records from a datastore, use the slack datastore query --output json command. If your datastore contains more than one page of records, you may need to use pagination to fetch all the records. 


Delete an app's datastore

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 datastore, use the slack datastore delete command. 
  4. To delete an entire datastore, 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 datastore from your app's manifest and re-deploy your app using the slack deploy --force command to drop the datastore table entirely. 
Who can use this feature?
  • Members who collaborate on apps
  • Available on paid plans