Most e-bike manufacturers prohibit pressure washing. High-pressure water can get past seals into the motor, connectors, and bearings. Use a bucket, a soft sponge, and a suitable cleaner, or a gentle spray if the manufacturer permits it.
If the battery is removable, take it indoors to a dry place before cleaning. Protect the battery mounting contacts as specified by the manufacturer. Use drivetrain brushes and suitable cleaners. Avoid aggressive solvents, pressure washing, and submersion, which can damage components and affect warranty coverage.