> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a discard notifier

The discard notifier discards all notifications.

<Note>
  You can't create discard notifiers from within the Chronosphere Observability
  Platform interface.
</Note>

Select from the following methods to create a discard notifier.

<Tabs>
  <Tab title="Chronoctl" id="discard-chronoctl">
    To create a discard notifier using [Chronoctl](/tooling/chronoctl):

    1. Define the resource definition for your discard notifier:

       ```yaml /NAME/ /SLUG/ theme={null}
       api_version: v1/config
       kind: Notifier
       spec:
         name: NAME
         slug: SLUG
         discard: true
       ```

       Replace the following:

       * *`NAME`*: A descriptive name, such as `Example discard`.
       * *`SLUG`*: A unique identifier, such as `example-discard`.

    2. Apply the changes:

       ```shell /FILE_NAME/ theme={null}
       chronoctl apply -f FILE_NAME.yaml
       ```

       Replace *`FILE_NAME`* with the name of your notifier YAML file.
  </Tab>

  <Tab title="Terraform" id="discard-terraform">
    To create a discard notifier using [Terraform](/tooling/infrastructure/terraform):

    1. Create a discard notifier with Terraform by using the
       `chronosphere_blackhole_alert_notifier` type followed by a name in a resource
       declaration:

       ```terraform theme={null}
       resource "chronosphere_blackhole_alert_notifier" "discard" {
         name = "Example discard"
       }
       ```

    2. Run `terraform apply` to create the notifier resource.

       ```shell theme={null}
       terraform apply
       ```
  </Tab>

  <Tab title="API" id="discard-api">
    To complete this action with the Chronosphere API, use the
    [`CreateNotifier`](/tooling/api-info/definition/operations/CreateNotifier)
    endpoint.

    Because the Chronosphere API requires authentication, include an API token with your
    `curl` request, as shown in the following example. For more details, see
    [Create an API token](/tooling/api-info#create-an-api-token).

    ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
    export CHRONOSPHERE_API_TOKEN="TOKEN"
    export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"

    curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
         -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
    ```

    Replace the following:

    * *`TOKEN`*: Your API token.
    * *`INSTANCE`*: The subdomain name for your organization's Observability Platform instance.
    * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
    * *`ENDPOINT_PATH`*: The specific endpoint you want to access.
  </Tab>
</Tabs>
