GDPR Compliance Issue with Log


I am trying to figure out how to comply with GDPR. I need to be able to delete all personalized infos gained from a connection after the connection has closed. As right now the remote IP is written to the function logs every log entry is personal data. So I need to either delete all log entries associated with a remote IP or configure the log to not log the remote IP. I would rather go for the latter.

Any suggestions?

P.S.: I am talking about the logs in MongoDB Atlas App Services!