Dont use String in JS and jQuery. And your selector is wrong.
function deletenote(){
var id = event.target.id;
$('#'+id).remove();
}
Also I think you can just call remove without getting the ID.
function deletenote(){
$(this).remove();
}