API Stability Long-Term

The uninstallPackage() GraphQL mutation may be used to uninstall a package from a specific view in LogScale.

For more information on packages, see the Packages documentation page.

Syntax

Below is the syntax for the uninstallPackage() mutation field:

graphql
uninstallPackage(
      packageId: UnversionedPackageSpecifier!
      viewName: string!
   ): BooleanResultType!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  uninstallPackage(
     viewName: "humio",
     packageId: "apache/http-server"
  )
    { result }
}
Example Responses
Show:
json
{
  "data": {
    "uninstallPackage": {
      "result": true
    }
  }
}

Given and Returned Datatype

The given database type, UnversionedPackageSpecifier is a scalar. The returned datatype BooleanResultType has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: BooleanResultType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 24, 2024
resultsbooleanyes Long-TermWhether the mutation was performed.