How to get only all non-deleted calendars

I’m trying to fetch all calendars from a nextcloud free account using PHP but the response is including extra objects including the deleted calendars too. Here is my XML payload:

<?xml version="1.0" encoding="utf-8"?>
    <d:propfind xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/" xmlns:c="urn:ietf:params:xml:ns:caldav">
        <d:prop>
            <cs:getctag />
            <d:displayname />
        </d:prop>
    </d:propfind>'

I just want to retrieve the calendars but nothing else but the response includes, inbox, outbox and deleted calendars too. Please keep in mind that, I’m a very beginner to this. Please let me know if I need to provide more information.

Thanks for your help guys.

So, I’ve updated the XML payload and added the <d:resourcetype /> to check the rsource type but this property is always empty? Any ideas?