function dbem_delete_image_files_for_location_id($location_id) { $EM_Location = new EM_Location($location_id); $EM_Location->image_delete(); }