Cockroaches won’t eat cucumbers. This is due to a chemical in cucumbers (trans-2-nonenal) which acts as a natural repellent for ants and roaches.