# Deleting object classes or properties

**URL:** <https://community.appfarm.io/t/deleting-object-classes-or-properties/762>\
**Category:** Ask the community\
**Created:** [October 10, 2023, 1:35pm UTC](https://community.appfarm.io/t/deleting-object-classes-or-properties/762 "2023-10-10T13:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OleSorheim](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/olesorheim/32/1171_2.png) [@OleSorheim](https://community.appfarm.io/u/OleSorheim)\
**Post date:** [October 10, 2023, 1:35pm UTC](https://community.appfarm.io/t/deleting-object-classes-or-properties/762/1 "2023-10-10T13:35:36Z")

</div>

Assuming we have launched an app and filled the app with lots of data.

What happens if an object class is deleted?  
What happens if a property of the object class is deleted?  
Is there a way to reverse this?  
Can I access the data that was defined by the object class/property that was deleted?

---

<div class="post-metadata">

**Author:** ![ohaabrekke](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/ohaabrekke/32/61_2.png) [@ohaabrekke](https://community.appfarm.io/u/ohaabrekke)\
**Post date:** [October 10, 2023, 3:06pm UTC](https://community.appfarm.io/t/deleting-object-classes-or-properties/762/2 "2023-10-10T15:06:24Z")

</div>

Hi,

First of all, to delete an _object class_ from the data model you need to remove all its references. So if the object class is in use somewhere in the solution, you cannot delete it until you remove all its references. The same applies to _properties_.

If there are no references to the object class (or property) and you delete it, you will not delete the data stored in the object class. So if you need to reverse that action, you can roll back to a previous snapshot of the solution (see more about snapshot [here](https://docs.appfarm.io/reference/operations/deploy#snapshots)). Note that only the solution (everything you have created in Appfarm Create) will be rolled back - not the application _data._
