Skip to main content
POST
/
v1
/
objects
/
{id}
/
delete
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const objectView = await client.objects.delete('id');

console.log(objectView.id);
{
  "id": "<string>",
  "name": "<string>",
  "state": "UPLOADING",
  "size_bytes": 123,
  "content_type": "unspecified",
  "create_time_ms": 123,
  "delete_after_time_ms": 123,
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

application/json · object

Response

id
string
required
name
string
required
state
enum<string>
required
Available options:
UPLOADING,
READ_ONLY,
DELETED,
ERROR
content_type
enum<string>
required
Available options:
unspecified,
text,
binary,
gzip,
tar,
tgz
create_time_ms
integer
required
size_bytes
integer | null
delete_after_time_ms
integer | null
upload_url
string | null