Skip to main content

Function: removeFertilizerApplication()

removeFertilizerApplication(fdm, principal_id, p_app_id): Promise<void>

Defined in: fdm-core/src/fertilizer.ts:744

Removes a fertilizer application record.

This function verifies that the principal has write permissions before deleting the fertilizer application record identified by the given ID.

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.

p_app_id

any

The fertilizer application record's ID to remove.

Returns

Promise<void>

Throws

If the removal operation fails.