delete-and-extract-region

delete-and-extract-region is a built-in function in `C source code'.

(delete-and-extract-region START END)

Delete the text between START and END and return it.