Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional icon

icon?: AppIcon

An Icon that represents the App

sys

sys: AppDetailsSys

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('<organization_id>')
    .then((organization) => organization.getAppDetails(<app-id>))
    .then((appDetails) => appDetails.delete())
    .then(() => console.log('appDetails deleted'))
    .catch(console.error)

    Returns Promise<void>

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

toPlainObject