Handle Error for Delete Framework