xmldb:remove($collection-uri as xs:string) empty()
Removes the collection $collection-uri and its contents from the database. Collection URIs can be specified either as a simple collection path or an XMLDB URI.
xmldb:remove($collection-uri as xs:string, $resource as xs:string) empty()
Removes the resource $resource from the collection $collection-uri. Collection URIs can be specified either as a simple collection path or an XMLDB URI.