# `Beancount.Directives.PopTag`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/directives/pop_tag.ex#L1)

The `poptag` directive pops a tag from Beancount's tag stack.

See [The Tag Stack](https://beancount.github.io/docs/beancount_language_syntax/#the-tag-stack).

## Beancount syntax

    poptag #trip

General form: `poptag #Tag`

## Elixir struct

    %Beancount.Directives.PopTag{
      tag: "trip"
    }

Or use `Beancount.pop_tag/1`:

    Beancount.pop_tag("trip")

## Fields

  * `tag` - tag name without the `#` prefix (must match a prior `pushtag`).

# `t`

```elixir
@type t() :: %Beancount.Directives.PopTag{tag: String.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
