Deletion in Doubly Linked List Data Structure | DSA Tutorials YASH PAL, 20 May 20204 May 2026 Deletion in Doubly Linked List – In this tutorial, we are going to learn how to perform deletion operations in the doubly linked list.Deletion in Doubly Linked ListAfter completing this tutorial, you can learn how toDelete the first node.Delete the only node.Delete a node between the nodes.Delete the last node.Deletion of the first node from the doubly-linked listAs you see, we have a doubly-linked list that has four nodes. So after deleting the first node, the second node becomes the first node.Figure 1: Deletion of the first node from the doubly-linked listSo first, we store the second node’s reference to the start variable.Figure 2: Deletion of the first node from the doubly-linked listAnd then we set the second node’s previous link part to Null or None. because the previous link part of the first node in the doubly linked list is always None or Null.Figure 3: Deletion of the first node from the doubly-linked listSo after performing these steps, the first node is deleted.Figure 4: Deletion of the first node from the doubly-linked listDelete the only node from the doubly linked listIf a linked list has only one node, then to delete this node, we set the start variable to None.Figure 5: Delete the only node from the doubly linked listFigure 6: Delete the only node from the doubly linked listNow our list becomes an empty list.Delete a node between the nodesTo delete a node between two nodes, first we need to find out the reference to the node that we want to delete. As you see, to delete the third node first, we found a reference p to that node.Figure 7: Delete a node between the nodesAnd then we store the reference of the node that comes after node p into the next link part of the node that comes before node p.Figure 8: Delete a node between the nodesAnd then we store the reference of the node that comes before node p into the previous link part of the node that comes after node p.Figure 9: Delete a node between the nodesNow, after performing these steps, the third node has been deleted from the doubly linked list.Figure 10: Delete a node between the nodesDelete the last node from the doubly linked listTo delete the last node of the list, first we need to find out the reference of the last node.Figure 11: Delete the last node from the doubly linked listAnd then we set the next link part of the node to Null or None that comes before node p.Figure 12: Delete the last node from the doubly linked listSo after performing these steps, the last node of the list is deleted.Figure 13: Delete the last node from the doubly linked listData Structures & Algorithms Tutorials for Beginners Computer Science Tutorials Data Structures Tutorials computer scienceData StructureDSA Tutorials