Do you want them deleted or do you want them not showing up in another section of your workbook a result of an array formula or function?
To delete them. Assuming there are no blank cells in a column you want to keep.
Select the rage in this case W1:AC8,
Press F5
Click Special
Click Checkbox for blank cells
Click OK
Then from ribbon click cells, delete columns.
For formula or filter, use the choosecolsI() columns function
in your example =Choosecols(W1:AC8,1,4,7)