Get in touch

Get in touch

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

This section explains how to delete a specific data file from Moveshelf using the Moveshelf API, based on the data'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 data file, add the following lines of code to your processing script:
## README: this example shows how we can delete a specific data
# file from Moveshelf using the Moveshelf API.

# Delete additional data by ID
additional_data_id = "<additionalDataId>" # additional_data["id"]
result = api.deleteAdditionalData(additional_data_id)

if result:
    print(f"File {additional_data_id} deleted successfully")
else:
    print(f"Failed to delete file {additional_data_id}")