Learner\Repositories\Eloquent\AbstractRepository::deleteById PHP Method

deleteById() public method

Delete the instance from the database.
public deleteById ( $id ) : boolean | null
return boolean | null
    public function deleteById($id)
    {
        return $this->findById($id)->delete();
    }