Added ownership check to delete command