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);
    }
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);
    }
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 ) ; }
Delete a Post Type by using it's ID.

@param  string $lang
@param  int    $id
@return array
Delete a Post Type by using it s ID .