Delete customer
๐๏ธ Deleting a Customer from the Databaseยถ
Production Safety
Always ensure you have the necessary approvals and have taken a backup before deleting customer data from production databases.
๐๏ธ Database Informationยถ
- Database Name:
dashboard-sia
๐ Relevant Collectionsยถ
| Collection | Purpose |
|---|---|
customers |
Stores customer records. Delete the customer entry here. |
organizations |
Search for the customer by ID where type="CUSTOMER". |
๐ Deletion Stepsยถ
-
Locate the Customer in
customersCollection- Find the customer document you wish to delete.
- Confirm the customer ID and details.
-
Delete the Customer Document
- Remove the customer entry from the
customerscollection.
- Remove the customer entry from the
-
Check
organizationsCollection- Search for documents with the matching customer ID and
type="CUSTOMER". - Review any linked organization records before deletion or modification.
- Search for documents with the matching customer ID and
Audit and Compliance
Deleting customer data may have compliance implications. Ensure all actions are logged and follow your organization's data