public function delete(array $params) {
        $this->_requireDataType($params);
        if (!array_get($params, 'id')) {
            throw new Garp_Content_Api_Rest_Exception(
                self::EXCEPTION_MISSING_ID
            );
        }
        // First, see if the record actually exists
        list($record) = $this->_getSingleResult($params);
        if (is_null($record['result'])) {
            return $this->_formatResponse(array('success' => false), 404);
        }

        if (array_get($params, 'relatedType')) {
            $this->_removeRelation($params);
            return $this->_formatResponse(null, 204, false);
        }
        $contentManager = $this->_getContentManager($params['datatype']);
        $contentManager->destroy(array('id' => $params['id']));
        return $this->_formatResponse(null, 204, false);
    }