return proper json on destroy