Skip to main content
DELETE
/
dataslice
/
delete
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
data_slice = client.data_slice.delete(
    dataslice_id="dataslice_id",
)
print(data_slice.message)
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

dataslice_id
string
required

Response

Successful Response

message
string
required
data
Data · object