added delete command
fixed
refactor