I'd suggest you to use jQuery.
A solution to your problem could be this:
Add
deleteBtn.onclick = function(){
removeBurrito(this);
}
into the addingToCart function.
Update removeBurrito function into the following one:
function removeBurrito(element) {
element.parentElement.remove();
}