Controller/CategoriesController.php
public function removeCategory($id)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->delete('v1/categories/' . $id . '', $parameters);
        $result = new CategoryResponse($result);

        return $result;
    }
public function removeCategory($id)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->delete('v1/categories/' . $id . '', $parameters);
        $result = new CategoryResponse($result);

        return $result;
    }
Delete a Category.

You can not delete a category that has Media attached to it.

@param  int              $id the Category identifier
@return CategoryResponse