The FlatPeak API allows several types of objects to be deleted. Deletion cannot be undone; deleted objects are erased immediately and cannot be restored.

When an object is deleted, related objects may also be deleted, or references to the object may be removed. This page describes this deletion logic.

Customer

When a Customer is deleted:

  • All Locations belonging to this Customer are also deleted.

Location

When a Location is deleted:

  • The Customer it belongs to is updated to remove the deleted Location.
  • All Tariffs associated with this Location are deleted.

Tariff

When a Tariff is deleted:

  • The Location object it was associated with is updated.
  • All related Connect information is deleted, including energy provider connection data (keys, credentials, etc).

Device

When a Device is deleted:

  • No other objects are updated.