Leave at least an inch or more of clearance all the way around, except of course the bottom.  Consider more clearance if you game with it or use CPU heavy apps.  Can you upload a photo of the desk?  Is the desk open in the back and not 100% enclosed?
Will Optiplex 7010 SFF CPU overheat in custom desk cupboard?
7010 SFF CPU Overheating