public function delete($lang, $id)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('PostType', 'delete')) {
            return $this->noPermission();
        }

        $res = $this->deletePostType($id);
        if($res && is_bool($res)) {
            return $this->response('Post Type is successfully deleted');
        }
        if($res && !is_bool($res)) {
            return $res;
        }
        return $this->response('Post Type could not be deleted. Please try again later or contact your Administrator!', 500);
    }