Description Usage Arguments Details Value References Examples
delete_field
deletes a field_id for a location in the aWhere platform for which you can request weather
1 2 3 4 5 6 7 8 | delete_field(
field_id,
verbose = TRUE,
keyToUse = awhereEnv75247$uid,
secretToUse = awhereEnv75247$secret,
tokenToUse = awhereEnv75247$token,
apiAddressToUse = awhereEnv75247$apiAddress
)
|
field_id |
an ID of your choosing (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) |
This script deletes a field location in the aWhere platform. This API is a "hard delete" - the field record should actually be deleted from the system. The delete should cascade, if there are associated records to a field, they are deleted as well. This applies when we design/implement "Plantings" API.
- a print text that informs if the query succeded or not
https://docs.awhere.com/knowledge-base-docs/delete-a-field/
1 | ## Not run: delete_field("field123")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.