Method: BaseCRM::NotesService#destroy

Defined in:
lib/basecrm/services/notes_service.rb

#destroy(id) ⇒ Boolean

Delete a note

delete ‘/notes/BaseCRM#id

Delete an existing note If the note ID does not exist, this request will return an error This operation cannot be undone

Parameters:

  • id (Integer)

    Unique identifier of a Note

Returns:

  • (Boolean)

    Status of the operation.



113
114
115
116
# File 'lib/basecrm/services/notes_service.rb', line 113

def destroy(id)
  status, _, _ = @client.delete("/notes/#{id}")
  status == 204
end