use super::super::models::WorkItemDelete;
use super::super::WorkItemsClient;
use crate::constants;
use crate::constants::ApiPath;
use crate::error::Result;
impl WorkItemsClient<'_> {
/// Permanently destroy a work item (bypasses the recycle bin).
///
/// # Arguments
///
/// * `id` — The work item ID to permanently delete.
///
/// # Returns
///
/// A [`WorkItemDelete`] confirming the permanent deletion.
pub async fn destroy(&self, id: i64) -> Result<WorkItemDelete> {
let p = ApiPath::work_item(id);
self.http
.delete(&p, &[(constants::query::DESTROY, constants::query::TRUE)])
.await
}
}