what is the correct meaning of the word secrete?

Caterpillars secrete a liquid that turns into silk which they use to make their cocoons

to produce and give off
to consume and digest
to store and keep hidden
to collect and transform