possible to add a command to delete the path obtained with the command /path?

Thanks