curl --request DELETE \
--url https://davinci-app.com/api/v2/projects/{projectId}/objects/{objectId} \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
result = client.content.delete_object(project_id, object_id)
print(result.deleted_object_ids)
import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const result = await client.content.deleteObject(projectId, objectId);
console.log(result.deletedObjectIds);
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/objects/{objectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deletedCount": 2,
"deletedObjectIds": [
"<string>"
]
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Delete an object
Deletes an object from the running project, together with its descendants. Parent links, relationships, indexes, and other model references are cleaned through the same update path used by the editor.
The change is uncommitted when this returns. Call createCommit to save it
in git. Deleting a reference object does not delete its stored file bytes,
because file storage is shared across branches.
curl --request DELETE \
--url https://davinci-app.com/api/v2/projects/{projectId}/objects/{objectId} \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
result = client.content.delete_object(project_id, object_id)
print(result.deleted_object_ids)
import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const result = await client.content.deleteObject(projectId, objectId);
console.log(result.deletedObjectIds);
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/objects/{objectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deletedCount": 2,
"deletedObjectIds": [
"<string>"
]
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Personal access token. The scopes granted at issuance determine both which
operations the key may call and the ceiling on the resource permissions it
can exercise. Each scope family is a ladder: projects:manage implies
projects:write and projects:read; cards:manage implies cards:write
and cards:read; and teams:manage implies teams:write and teams:read.
These are named API capability bundles, not blanket domain roles:
manage exposes only the permissions enumerated for that scope and never
bypasses the acting user's current role-based access.
Path Parameters
Project id. May be compound in the form {projectId}--{branchName}.
1Id of an object in the project.
1