Can we delete taskbar from right click on task_bar from timeline?

is there any way to delete the task bar in Gantt from right click on the taskbar in the timeline?

Yes, it is possible to do that.
You can use the onContextMenu event handler that fires when you right-click in Gantt:

Here is an example: