Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Upload

Hierarchy

Index

Properties

Methods

Properties

sys

sys: MetaSysProps & { space: SysLink }

System metadata

Methods

delete

  • delete(): Promise<void>
  • Deletes this object on the server.

    example

    const contentful = require('contentful-management')

    const client = contentful.createClient({ accessToken: '' })

    client.getSpace('') .then((space) => space.getEnvironment('')) .then((environment) => environment.getUpload('')) .then((upload) => upload.delete()) .then((upload) => console.log(upload ${upload.sys.id} updated.)) .catch(console.error)

    Returns Promise<void>

    Promise for the deletion. It contains no data, but the Promise error case should be handled.

toPlainObject