I want to delete all tags from a note using Evernote swift SDK. Here is my code, but I cannot delete them with this, any way to do that?
ENSession.shared.download(noteRef!, progress: nil) { (note: ENNote?, error: Error?) in
if error == nil {
note?.tagNames = [String]()
ENSession.shared.upload(note!, policy: .replace, to: nil, orReplace: noteRef, progress: nil, completion: { (noteRef: ENNoteRef?, error: Error?) in
if error == nil {
print("Tag Deleted")
}
})
}
}
Can you try this?