Function: removeSoilAnalysis()
removeSoilAnalysis(
fdm
,principal_id
,a_id
):Promise
<void
>
Defined in: fdm-core/src/soil.ts:153
Removes a soil analysis record and its associated sampling data.
Verifies that the principal has write permissions, then executes a transaction to delete the corresponding entries from both the soil sampling and soil analysis tables.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The ID of the principal performing the removal.
a_id
any
The ID of the soil analysis record to remove.
Returns
Promise
<void
>
Throws
If the operation fails due to permission issues or database errors.