Deletes the history of downloaded translations.
array $projects: Project name(s) to be deleted from the file history. If both project(s) and language code(s) are specified the conditions will be ANDed.
array $langcode: Language code(s) to be deleted from the file history.
function locale_translation_file_history_delete($projects = array(), $langcodes = array()) {
$query = db_delete('locale_file');
if (!empty($projects)) {
$query
->condition('project', $projects);
}
if (!empty($langcodes)) {
$query
->condition('langcode', $langcodes);
}
$query
->execute();
}