I started creating an app with a feature of type custom object. When I first install the app everything is fine and there are no standard items (Item 1, Item 2, …) created. As soon as I send an API call to retrieve all boards e.g. using the API explorer (https://monday.com/developers/v2/try-it-yourself) with the following query:
query getAllBoardNames {
boards {
name
items_count
type
}
}
there are 5 standard items created. Is there a way to prevent that?
Or is there a way to delete these items again once they are created?
Okay, what would be the best location to do so, as I do not want to fetch and then delete the items on every load of my application^^
The items are a problem as my application does not need any of the items, but when the items are created they also appear in the my tasks board of the user. This is a bit annoying as the user needs to delete them manually.
I believe the easiest way to do this would probably be to erase all items the first time the view is loaded and save the ID of the board on your end. If when you get the board ID in the context of the view you already have that board ID in (let’s say) an array of “boards with already deleted items”, then you do nothing.
The other way would be to send an API query like this one each time the view loads, and then if the count is 0, you do nothing: