Update delete_command.py: add comments and rearrange some code

Signed-off-by: Michael LeCompte <michaelslec98@gmail.com>
Merge branch 'cleanup-delete_command' into dev