How to delete an entry from a component attached to a collection type

System Information
  • Strapi Version: 3.5.4
  • Operating System: windows server 2019
  • Database: mongoose
  • Node Version: 14.15.5
  • NPM Version:
  • Yarn Version:


i cant seem to find a way of deleting an entry from a component that is assigned to a collection, i would like to set up a cron that deletes the last 20 entries from the component.

i can provide more info if needed but want to see if any one will help as my last question got ignored!