| osm_delete_note {osmapiR} | R Documentation | 
Delete notes
Description
Hide (delete) notes. This request needs to be done as an authenticated user with moderator role.
Usage
osm_delete_note(note_id, text)
Arguments
note_id | 
 Note ids represented by a numeric or a character vector.  | 
text | 
 A non-mandatory comment as text.  | 
Details
Use osm_reopen_note() to make the note visible again.
Value
Returns a data frame with the hided map notes (same format as osm_get_notes() with format = "R").
See Also
Other edit notes' functions: 
osm_close_note(),
osm_create_comment_note(),
osm_create_note()
Other functions for moderators: 
osm_hide_comment_changeset_discussion(),
osm_redaction_object()
Examples
## Not run: 
set_osmapi_connection("testing") # use the testing server
note <- osm_create_note(lat = "40.7327375", lon = "0.1702526", text = "Test note to delete.")
del_note <- osm_delete_note(note_id = note$id, text = "Hide note")
del_note
## End(Not run)
[Package osmapiR version 0.1.0 Index]