Description Usage Arguments Details Value References Examples
delete_planting
deletes a planting associated with a specific field_id in the aWhere platform
1 2 3 4 5 6 7 8 9 | delete_planting(
field_id,
planting_id,
verbose = TRUE,
keyToUse = awhereEnv75247$uid,
secretToUse = awhereEnv75247$secret,
tokenToUse = awhereEnv75247$token,
apiAddressToUse = awhereEnv75247$apiAddress
)
|
field_id |
the ID of the field for which you want to delete an associated planting (string) |
planting_id |
The planting Id that you want to delete. You can also use "current" to delete the most recent planting (string) |
keyToUse |
aWhere API key to use. For advanced use only. Most users will not need to use this parameter (optional) |
secretToUse |
aWhere API secret to use. For advanced use only. Most users will not need to use this parameter (optional) |
tokenToUse |
aWhere API token to use. For advanced use only. Most users will not need to use this parameter (optional) |
apiAddressToUse |
Address of aWhere API to use. For advanced use only. Most users will not need to use this parameter (optional) |
The aWhere API only references the most recent planting when calculating agronomics and running models, but if you want to keep your planting records clean for reporting and historical tracking purposes you can delete errant or incorrect plantings.
- a print text that informs if the query succeded or not
https://docs.awhere.com/knowledge-base-docs/delete-a-planting/
1 | ## Not run: delete_planting("field123",'133972')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.