C-x b followed by
TAB, a list of buffers are brought up. Is there a way to quickly kill the buffers that are not needed (by pressing
d) on the selected buffer?
What do you mean by "the selected buffer" here? In vanilla Emacs,
C-x b TAB does not let you select/choose more than one buffer, and it just switches to that chosen buffer.
If you use Icicles then
C-x b TAB lets you cycle among or otherwise move to any of the buffer-name candidates. You can then use
S-<delete> to delete the buffer named by the current (selected) candidate.
Similar possibilities exist with some other packages that also provide a way to cycle or otherwise navigate to (select) a buffer-name candidate. This includes Ido (from vanilla Emacs), Helm, and Ivy.
In Icicles you can also use
C-x k, filter buffer-name candidates in various ways, and then use
C-! to kill all of the remaining candidate buffers at once.