delline function deletes the line containing the cursor and move all lines below it one line up.
#include<stdio.h> #include<conio.h> main() { printf("This line will be deleted when you press a key."); getch(); delline(); printf("Line deleted successfully."); getch(); return 0; }