Delete Sessions

The delete_sessions.py script deletes sessions on one or more devices. Sessions can be identified by session type, device ID, and session ID. For information about using the SubMan APIs to delete sessions, see the discussion about device REST APIs in MATRIXX Subscriber Management API.

About this task

Before using the delete_sessions.py script, run validate_sessions.py.

Procedure

  1. Log into the server as a user with sudo permissions and change to user mtx.
    For example:

    ssh server_ip_address

    sudo su - mtx

  2. Open a terminal and enter one of the following commands:
    • delete_sessions.py [options] list_of_devices
      For example:
      delete_sessions.py -s Sy 0:1:5:3 0:1:5:5
    • delete_sessions.py [options] -f inFile 
      For example:
      delete_sessions.py -s Gx -f /inputFiles/device_ids.txt -t AccessNumber -v