Developer Docs
OverviewGroupsPathways
  • Getting Started
  • Overview
    • API Manager
    • User Privacy
    • Responses
  • Groups
    • Concepts
    • Manage
    • Status
    • Insert
    • Remove
  • Data
    • Overview
    • List
    • Upload
    • Download
    • Delete
    • Insert
    • Remove
  • Pathways
    • Overview
    • Enrolments
      • List
      • Manage
    • Web Tracking
      • Serverless
      • Server-Side Platforms
    • Classroom & Events
      • List
      • Consume
    • Rewards
      • List
      • Consume
    • Webhooks
      • Enrolments
      • Classroom & Events
      • Rewards
    • Logs
      • Activity & Fulfilment Types
      • Activity & User Logs
  • Stories
    • Logs
      • Story Logs
      • User Story Logs
    • Certificates
    • Question Analysis
  • Streams
    • Subscriptions
    • Ratings
  • Analytics
    • Overview
    • Published
    • Realtime
    • Audience
      • Frequency
      • Demographics
      • Locations
      • Retention
    • Reviews
Powered by GitBook
On this page
  • Parameters
  • Example
  • Success Response
  1. Data

Delete

Parameters

Key

Type

REQUIRED

collection

String (Collection Name)

upload

String (Upload Name)

Example

The example below deletes "Upload 1" from the collection "Collection 1".

curl -X POST \
  v1/data/delete\
  -H 'Authorization: Basic <Your Base64 Encoded Token>'\
  -d '{
    "collection" : "Collection 1",
    "upload"     : "Upload 1"
}'

Success Response

The response returns current information on the collection. The stats property will detail how many uploads are in the collection, and what size the sum of the data is.

{
    "status": "success",
    "data": {
        "collection": "My Collection",
        "stats": {
            "uploads": 0,
            "size": 0
        }
    },
    "hash": "2b12124dda10e6141d11d114b9a754ca",
    "response_time": 0.13753485679626465
}

PreviousDownloadNextInsert

Last updated 5 months ago