-- add catch foreign key error in deleting details in POD