Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AppBundle

Hierarchy

Index

Properties

Methods

Properties

Optional comment

comment: undefined | string

A comment that describes this bundle

files

files: AppBundleFile[]

List of all the files that are in this bundle

sys

System metadata

Methods

delete

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

    example
    const contentful = require('contentful-management')
    
    const client = contentful.createClient({
      accessToken: '<content_management_api_key>'
    })
    
    client.getOrganization('<org_id>')
    .then((org) => org.getAppDefinition('<app_def_id>'))
    .then((appDefinition) => appDefinition.getAppBundle('<app-bundle-id>'))
    .then((appBundle) => appBundle.delete())
    .catch(console.error)
    

    Returns Promise<void>

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

toPlainObject