truncate_layer | R Documentation |
Removes all features in a Feature Layer or Table and resets the object ID counter. Truncating a Feature Layer does not change the schema of the data (does not add, remove, or alter existing database columns, constraints, or indexes).
truncate_layer(x, async = FALSE, attachment_only = FALSE, token = arc_token())
x |
an object of class |
async |
default |
attachment_only |
default |
token |
your authorization token. |
a named list with the name "success" and a value of TRUE
or FALSE
ArcGIS Developers Rest API Doc
## Not run:
# authorize using code flow
set_arc_token(auth_code())
# create a FeatureLayer object
flayer <- arc_open("your-feature-layer-url")
# truncate it
truncate_layer(flayer)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.