Skip to content
Go to Boltz API

Delete prediction data

predictions.structure_and_binding.delete_data(strid) -> StructureAndBindingDeleteDataResponse
POST/compute/v1/predictions/structure-and-binding/{id}/delete-data

Permanently delete the input, output, and result data associated with this prediction. The prediction record itself is retained with a data_deleted_at timestamp. This action is irreversible.

ParametersExpand Collapse
id: str
ReturnsExpand Collapse
class StructureAndBindingDeleteDataResponse:
id: str

ID of the resource whose data was deleted

data_deleted: Literal[true]
data_deleted_at: datetime

When the data was deleted

formatdate-time

Delete prediction data

import os
from boltz_api import Boltz

client = Boltz(
    api_key=os.environ.get("BOLTZ_API_KEY"),  # This is the default and can be omitted
)
response = client.predictions.structure_and_binding.delete_data(
    "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
)
print(response.id)
{
  "id": "id",
  "data_deleted": true,
  "data_deleted_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
  "id": "id",
  "data_deleted": true,
  "data_deleted_at": "2019-12-27T18:11:19.117Z"
}