Skip to contents

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.

Value

Returns a data frame with the hided map notes (same format as osm_get_notes() with format = "R").

Details

Use osm_reopen_note() to make the note visible again.

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

if (FALSE) {
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
}