Hierarchy

Properties

Methods

Properties

sys: MetaSysProps & {
    space: SysLink;
}

System metadata

Methods

  • Deletes this object on the server.

    Returns

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

    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>