removeFertilizer
@nmi-agro/fdm-source / fdm-core/src / removeFertilizer
Function: removeFertilizer()
removeFertilizer(
fdm,p_id,principal_id):Promise<void>
Defined in: fdm-core/src/fertilizer.ts:766
Alpha
Removes a fertilizer from a farm.
Parameters
fdm
PgDatabase
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
p_id
any
The ID of the fertilizer to remove.
principal_id
any
The ID of the principal making the request.
Returns
Promise<void>
A Promise that resolves when the fertilizer has been removed.
Throws
If removing the fertilizer fails or the principal lacks access.