# Remove a block or allow entry

`DELETE https://api.mailmasker.org/api/v1/domains/recipient-access/:recipient`

Take any address off the block-and-allow list, whoever put it there.

- Who can use it: Site admins
- Area: Domains and DNS
- Answers 200 OK when it works
- Page: https://developer.mailmasker.org/unblock-any-address

Removes the entry for this address, whether a site admin or the account itself made it, so its mail is handled as usual again.

## Parameters

| Name | In | Required | What it is | Example |
|---|---|---|---|---|
| `recipient` | path | yes | The address, exactly as the list shows it. | `shop@example.com` |

## Good to know

- An address that isn't on the list answers 404.

## Examples

cURL:

```bash
curl -s -X DELETE 'https://api.mailmasker.org/api/v1/domains/recipient-access/shop%40example.com' \
  -H "Authorization: Bearer $TOKEN"
```

Perl:

```perl
use Mojo::Base -strict;
use Mojo::UserAgent;

my $ua  = Mojo::UserAgent->new;
my $res = $ua->delete('https://api.mailmasker.org/api/v1/domains/recipient-access/shop%40example.com',
    { Authorization => "Bearer $ENV{TOKEN}" })->result;
die $res->code, ' ', ($res->json('/error') // $res->message), "\n" unless $res->is_success;
print $res->body, "\n";
```

homelab-cli:

```bash
homelab-cli dns recipient-access remove shop@example.com
```

## Response

200 OK:

```json
{ "ok": true }
```
