Use WPSC_Purchase_Log status constants in wpsc_delete_purchlog().
Check admin capabilities before doing purchase log actions and document.