I have a Notebook running in AGOL org account that is supposed to find a specific item for a user but it always returns all a list of the items of that type for the user, not the 1 item specified in they query.
items_existing = gis.content.search(query="title:SomeItemTitle, owner:someusername", item_type='PDF')
This does not return the single expected item with the title "SomeItemTitle" and returns the list of all items of type PDF for that user.
Am I not implementing this correctly?
Edit: the problem is that I NEED to delete an item with the exact title name because it will be recreated again with the same title (getting a new itemId). What I am running into is that it cannot find the specific item by title and for some reason when it recreates the pdf item it adds on a datetime stamp into the title name.