See CALIBRE_TEMP_DIR in
Calibre User Manual: Environment variables
Put it somewhere you can keep an eye on it. When calibre is not running (library manager, viewer, editor, command line utilities etc) you can safely remove anything that's in it with Finder - stuff happens.
BR