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

# Delete an Entity through an Entity

> Delete an Entity through an Entity

Properties of Entities can themselves be Entities. Since we can access properties of such an entity, we can also delete the Entity.

This example shows the use of the `Delete()` method to delete an Entity property of a `Sale` Entity.

```csharp theme={null}
using SuperOffice.CRM.Entities;
using SuperOffice.CRM.Rows;
using SuperOffice;
using(SoSession mySession = SoSession.Authenticate("SAL0", ""))
{
  //Retrieve an entity
  Sale newSale = Sale.GetFromIdxSaleId(48);

  //Deleting a Contact through a Sale
  newSale.Contact.Delete();

  //Using IsDelete to check whether the Contact has been deleted
  if (newSale.Contact.IsDeleted == true)
  {
    string test2 = "Contact has been deleted";
  }
}
```

The `IsDelete` property in the Contact Entity is used to check whether the Contact Entity has been deleted. If the Entity is deleted, the value of the property will be set to "true".

## See also

* [Delete an Entity][1]
* [Delete a Row through an Entity][2]

[1]: ./delete-entity

[2]: ../rows/delete-row-from-entity


## Related topics

- [Delete Entities](/en/api/reference/restful/agent/selection_agent/delete-entities.md)
- [Delete Ticket Entity](/en/api/reference/restful/rest/ticket/delete-ticket-entity.md)
- [Delete Project Entity](/en/api/reference/restful/rest/project/delete-project-entity.md)
- [Delete Mailing Entity](/en/api/reference/restful/rest/mailing/delete-mailing-entity.md)
- [Delete List Entity](/en/api/reference/restful/rest/list_/delete-list-entity.md)
- [Delete Document Entity](/en/api/reference/restful/rest/document/delete-document-entity.md)
- [Delete Person Entity](/en/api/reference/restful/rest/person/delete-person-entity.md)
