> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RemoveContactFromTrashBin

# Package: contacts

# Namespace: Contacts

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/remove-contact-from-trash-bin.md

## Permission Scopes:
Manage Contacts: SCOPE.DC-CONTACTS.MANAGE-CONTACTS

## Introduction

Permanently deletes a contact from the trash bin.

After removal, the contact can no longer be restored.

---

## REST API

### Schema

```
 Method: removeContactFromTrashBin
 Description: Permanently deletes a contact from the trash bin.  After removal, the contact can no longer be restored.
 URL: https://www.wixapis.com/contacts/v5/contacts/trash-bin/{contactId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactId
 Method parameters: 
   param name: contactId | type:   none | required: true 
 Return type: RemoveContactFromTrashBinResponse
  EMPTY-OBJECT {}


```

### Examples

### Remove a contact from the trash-bin
Permanently removes a deleted contact from the trash bin by contact ID (cannot be restored afterwards).

```curl
curl -X DELETE \
'https://www.wixapis.com/contacts/v5/contacts/trash-bin/fa6fe461-6fe9-400b-9866-2ad7734dba57' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.crm.contactsV5.removeContactFromTrashBin(contactId)
 Description: Permanently deletes a contact from the trash bin.  After removal, the contact can no longer be restored.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactId
 Method parameters: 
   param name: contactId | type: string | description: GUID of the contact to permanently delete from the trash bin. | required: true | validation: format GUID
 Return type: PROMISE<RemoveContactFromTrashBinResponse>
  EMPTY-OBJECT {}


```

### Examples

### Permanently remove a contact from the trash bin
```javascript
import { contactsV5 } from "@wix/crm";

const contactId = "c97ff9b0-345e-44b9-a93f-2a1442a11f3f";

async function removeContactFromTrashBin() {
  const response = await contactsV5.removeContactFromTrashBin(contactId);
}

/* Promise resolves to:
 * {}
 */

```

### removeContactFromTrashBin (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { contactsV5 } from '@wix/crm';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { contactsV5 },
  // Include the auth strategy and host as relevant
});


async function removeContactFromTrashBin(contactId) {
  const response = await myWixClient.contactsV5.removeContactFromTrashBin(contactId);
};
```

---