Catalysis of the reaction: acyl-CoA + acceptor = 2,3-dehydroacyl-CoA + reduced acceptor, where the acyl group is a very long chain fatty acid residue. A very long-chain fatty acid is a fatty acid which has a chain length greater than C22.