*
* @param array $params
* Array array holding id - Id of the contact membership to be deleted.
- *
- * @return array
- * API result array.
+ * @return array API result array.
+ * @throws API_Exception
*/
function civicrm_api3_membership_delete($params) {
if (isset($params['preserve_contribution'])) {