Prevent Activities From being recorded to DB

Hello, I am wondering if there is a known way to prevent activities from being recorded to the database.

Thanks