List the images using REST API and search pattern

ARTIFACTORY: How to delete specific docker images based on name and patterns from Artifactory

AuthorFullName__c
Rohith Balachandran
articleNumber
000005595
ft:sourceType
Salesforce
FirstPublishedDate
2023-03-01T17:32:31Z
lastModifiedDate
2023-03-01
VersionNumber
1
Firstly, you can search and list the docker images which will be deleted using below CURL command:
curl -s -k -uadmin:Password@1 -XPOST "http://localhost:8082/artifactory/api/search/aql" -d 'items.find({"repo":{"$match":"test-docker-local"}, "$and":[{"path":{"$match":"new/nginx/*"},"path":{"$nmatch":"new/nginx/*dbsetup*"}}]})'  -H "Content-Type:text/plain"