---
title: "Dismiss a refused mail and delete its kept files"
description: "Other routes API"
---

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

# Dismiss a refused mail and delete its kept files

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/arrivals/not-accepted/&#123;id&#125;/dismiss</code>
</div>
</div>

Deletes the invoice files a refused mail keeps. The mail stays in the list as refused, keeping no file. For a file that could not be read, as `file-<n>`, deletes the file and its row.

## Path parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The kept files are deleted. |
| `401` | No usable credential was sent (`invalid_credentials`), or it is not a signed-in person (`session_required`). |
| `404` | This company has no arrival with that id (`arrival_not_found`). |
| `409` | The mail keeps no file (`nothing_kept`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/dismiss-a-refused-mail-and-delete-its-kept-files/index.mdx
