add -g and -s option for delete command