Try removing the icon from the Start menu instead: click Start Menu, find the app in the list or search for it, right-click it and select "Unpin from taskbar". If it's one of the Windows icons, like Search, Task view or Widgets, go to Settings > Personalization > Taskbar and turn it off under Taskbar items.
If the right-click menu still doesn't show any options, press CTRL + SHIFT + ESC to open Task Manager, right-click Windows Explorer and select "Restart", then try again.
If it still doesn't work, please post a screenshot of the taskbar showing the icons you want to remove. You can press Windows key + SHIFT + S to take it and paste it here in your reply.