Skip to main content

Function: removeFertilizer()

removeFertilizer(fdm, p_id): Promise<void>

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

Alpha

Removes a fertilizer from a farm.

Parameters

fdm

any

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.

Returns

Promise<void>

A Promise that resolves when the fertilizer has been removed.

Throws

If removing the fertilizer fails.