The Delete Object API enables you to remove a previously saved object from the Nirvahak system permanently. You must provide a valid savedObjectId representing the object you intend to delete.
This operation is irreversible and should be used with caution, especially for critical records such as appointments, orders, or user-linked data.
API Request Format
GET https://server.nirvahak.com/studio/jsonp/delete/{savedObjectId}
Parameter Breakdown
| Parameter | Type | Required | Description |
| savedObjectId | Path | Yes | The unique identifier of the object to be deleted. Example: 6824724b35ce047a87332eac |
Example Request
GET https://server.nirvahak.com/studio/jsonp/delete/6824724b35ce047a87332eac
This call attempts to delete the object with ID 6824724b35ce047a87332eac from the Nirvahak system.
Success Response (JSONP Format)
ng_jsonp_callback_0({
"status": "success",
"message": "Object deleted successfully",
"savedObjectId": "6824724b35ce047a87332eac"
});
Error Response
ng_jsonp_callback_0({
"status": "error",
"message": "Invalid object ID or object does not exist"
});