As i understand it, default configuration is set to never delete any data, neither raw nor processed. you can set a time range in settings → privacy → Anonymize data. scroll down to “Regularly delete old raw data”. but this will delete old data, not just hide it from being available “through an API”. i dont think that is possible.