# Edit or delete a company

> Change a B2B company's name, contact details and tags from its detail page in Data Platform › Companies, or delete it.

Open a company from **Data Platform › Companies** to change its name, email, phone number and tags, or to delete it. The **Company Id** cannot be changed.

> **Caution**
>
> Saving the **Edit** form removes the company’s custom fields. If your shop sends custom fields through the API, update the company through the API instead of this form. See [Companies and roles](https://releva.ai/documentation/learn/companies/companies-and-roles/#the-edit-form-and-the-api-write-the-same-record).

## Before you start

* You can find the company. See [Find a company and see its activity](https://releva.ai/documentation/guides/companies/find-a-company/).
* The company has no custom fields that you want to keep, or you update it through the API.

## Steps

1. Open the company from **Data Platform › Companies**.

   The card shows the email only when the company also has a phone number, so a company without one shows **N/A** twice.

   ![Step 1](https://releva.ai/documentation/_astro/step-1.jC2x32-D_ZTlyqB.webp)

2. Select **Edit**.

   ![Step 2](https://releva.ai/documentation/_astro/step-2.CrTeGYiL_ZFIINa.webp)

3. Change the fields you need. **Company Id** cannot be changed.

   Wait until the form shows the saved values before you type. The form fills from the server after it opens, and anything typed earlier is overwritten. Tags are shown here only: type a tag and press Enter to add one, or select its `×` to remove it.

   ![Step 3](https://releva.ai/documentation/_astro/step-3.OGPqlicN_SXhKh.webp)

4. Select **Save**.

   ![Step 4](https://releva.ai/documentation/_astro/step-4.CFX8nlpt_Z1WHheV.webp)

5. Releva opens the company again. Reload the page if the new details do not show yet.

   The change takes a few seconds to arrive, so the page that opens right after **Save** can still show the old values.

   ![Step 5](https://releva.ai/documentation/_astro/step-5.BPJ1q4QB_Z11SMD2.webp)

## Delete a company

1. Open the company and select **Delete**.
2. In the **Are you sure?** dialog, select **Confirm**. **Close** cancels.
3. The card shows **Company has been scheduled for deletion.** The company disappears from the list a few seconds later. Opening its page again shows **Company with this id cannot be found!**

Deleting a company does not remove the roles that link people to it, nor the events sent with its id. Sending the same Company Id again, through the form or the API, brings the company back.

## Check it worked

* After step 5 the company card shows the new name, email or phone number.
* Select **Edit** again: the **Tags** field shows the tags you saved.
* After a delete, a search for the Company Id shows no rows.

## Troubleshooting

**My change disappeared while I was typing.** The form was still loading the saved values. Open **Edit** again, wait for the fields to fill, then make the change.

**The custom fields are gone after saving.** The **Edit** form saves only the Company Id, name, email, phone number and tags, and the saved record replaces the old one. Send the company again through the API with its `custom` object to restore the fields.

**The company page still shows the old values after Save.** The change takes a few seconds to arrive. Reload the page.

**The card shows N/A for the email after saving.** The card shows the email only when the company also has a phone number. The email is still stored; the list and the **Edit** form show it.

**The count above the list did not drop after a delete.** The count still includes deleted companies. It is a known issue; the deleted company is not in the rows.

**The browser tab reads “Ediit”.** That is a typo in the current admin; the form works normally.

## Next steps

* [Find a company and see its activity](https://releva.ai/documentation/guides/companies/find-a-company/): Check the company’s linked profiles and statistics after your change.
* [Add a company](https://releva.ai/documentation/guides/companies/add-a-company/): Create a new B2B company with the id your own systems use.
* [Companies and roles](https://releva.ai/documentation/learn/companies/companies-and-roles/): Learn how people are linked to companies and how updates behave.
* [B2B API overview](https://releva.ai/documentation/reference/companies/overview/): Create and update companies and roles from your own systems.