Data retention and deletion

How information is retained during service use and what happens when access or a connection ends.