function search_api_server_delete in Search API 7
Deletes a search server and disables all associated indexes.
Parameters
$id: The ID or machine name of the server to delete.
Return value
int|false 1 on success, 0 or FALSE on failure.
File
- ./
search_api.module, line 2800 - Provides a flexible framework for implementing search services.
Code
function search_api_server_delete($id) {
$server = search_api_server_load($id, TRUE);
$server
->delete();
return 1;
}