Added a delete function to the editor.