Get in touch

Get in touch

Prefer using email? Say hi at hello@moveshelf.com

This section explains how to delete a trial from Moveshelf using the Moveshelf API, based on the trial's ID.
Prerequisites
Before implementing this example, ensure that your processing script includes all necessary setup steps. In particular, you should have:
Implementation
To delete an existing trial, add the following lines of code to your processing script:
## README: this example shows how we can delete a trial from Moveshelf 
# using the Moveshelf API.

# Delete a trial (clip) by ID
clip_id = "<clipId>" # clip["id"]
result = api.deleteClip(clip_id)

if result:
    print(f"Trial {clip_id} deleted successfully")
else:
    print(f"Failed to delete trial {clip_id}")