apexd: delete all previous sessions when new session is submitted

StagingManager is going to enforce that at any point in time there will
be no more than one non-finalized staged session.

This means, that apexd doesn't need to keep metadata about previous
sessions, so it should be safe to delete it.

Bug: 127296534
Test: apexservice_test, apex_e2e_tests
Change-Id: If64990f140c738afd1b1ef453344702a04929a36
3 files changed
tree: aeed849c7bc25b782bb5f4089363dbba84d7196e
  1. apexd/
  2. apexer/
  3. proto/
  4. tests/
  5. OWNERS
  6. PREUPLOAD.cfg
  7. TEST_MAPPING