---
title: "Amplia Reg command: **cancel-canceled-orders-enrollment-tcn**"
description: "Amplia Reg command cancel-canceled-orders-enrollment-tcn: cancels on PSBio the open enrollment TCN of canceled Brazilian orders."
canonical: "https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/tool/cancel-canceled-orders-enrollment-tcn"
locale: "en"
product: "Amplia Reg"
last_updated: "2026-10-12"
---

# Amplia Reg command: **cancel-canceled-orders-enrollment-tcn**

## Name

`cancel-canceled-orders-enrollment-tcn` - Cancels the PSBio enrollment TCN of canceled orders

## Syntax

```sh
dotnet Lacuna.AmpliaRegNg.Site.dll [settings] -- cancel-canceled-orders-enrollment-tcn [options]
```

Or, on Docker:

```sh
docker run -i lacunasoftware/ampliareg:x.y.z [settings] -- cancel-canceled-orders-enrollment-tcn [options]
```

> **Info**
>
> Replace `x.y.z` above with the desired version

The `settings` arguments are additional settings to overwrite settings from configuration files and environment variables,
for instance `--Section1:Name1=value1 --Section2:Name2=value2`.

Options:

* `--batchsize <batch-size>`: number of orders to process per batch. Default: 100
* `--logfrequency <log-frequency>`: how often, in number of processed orders, progress is written to the log. A value less than or equal to zero turns this log off. Default: 5

## Description

The `cancel-canceled-orders-enrollment-tcn` command finds canceled Brazilian orders that still have an open enrollment TCN on PSBio
and cancels that TCN, so that the holder's biometric enrollment does not stay pending on the PSBio network for an order that has already
been canceled.

This command is useful to fix orders that were canceled **before** the fix of [ARNG-905](https://docs.lacunasoftware.com/en-us/articles/amplia-reg/changelog#5.26.0), when the enrollment
TCN was not canceled automatically. Orders canceled after that fix already have their TCN canceled automatically, so you don't need to
run this command for them.

Before processing, the command shows the number of orders found and asks for confirmation (`Y`) before going ahead, since the action cannot be undone.

## See also

* [Amplia Reg command-line tool](https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/tool)
