Delete one entity
DELETE /Platform/entities/{entity_type}/{entity_id}
Delete one entity.
A soft delete (the default) hides the entity on branch; its commits
stay and restore brings it back. hard removes it permanently.
For several ids in one call use delete.
Path parameters
entity_type: str. Entity class name.entity_id: str. Entity id to delete.
Query parameters
branch: optional str. Hilus branch (defaultmain).hard: optional bool. When True, permanently hard-delete instead of soft-delete.
Returns
EntityResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.commit_id: optional str or null. Commit the YAML was read at.yaml_content: optional str or null. The entity as YAML (only the requested fields on a paths read).access: optional EntityAccess or null. Who may read and write the entity; never part of the YAML.computed: optional dict or null. Read-only derived values (live URLs, state), computed per read and never written back.branch: optional str or null. Branch the read was served from.read_branch: optional str or null. The experiment branch whose version handled the live contact that wrote this record: the branch for the experiment group, main for the control group; null when no experiment was involved.view_offset: optional int or null. Line number of the first YAML line in the full view, on a single-path read.values: optional dict or null. The entity's fields as JSON (dtypes as their YAML form), on a values=true read.
Example request
curl -X DELETE "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}" \
-H "Authorization: Bearer $HILUS_API_KEY"