1 redirect.module redirect_delete($rid)

Delete a single URL redirect.

Parameters

$rid: The ID of the redirect to delete.

Return value

int The constant SAVED_DELETED on success.

Throws

Exception A generic exception if the redirects could not be deleted.

Related topics

File

core/modules/redirect/redirect.module, line 769

Code

function redirect_delete($rid) {
  return redirect_delete_multiple(array($rid));
}