delete#
- Service.delete(items: list) None #
Delete objects from the database.
- Parameters:
- items
list
List of objects to delete. The objects can be of one of these types:
"Item"
,Report
,"Session"
orDataset
.Note
Deleting a session or a dataset also deletes all items associated with the session or dataset. Deleting a Report also deletes all its children.
- items
Examples
import ansys.dynamicreporting.core as adr adr_service = adr.Service(ansys_installation=r'C:\Program Files\ANSYS Inc\v232') adr_service.connect(url='http://localhost:8020') all_items = adr_service.query(type='Item') adr_service.delete(all_items) my_report = adr_service.get_report(report_name='My Report') adr_service.delete([my_report])