Discord Clear Command

How do i make a command that deletes messages so when i do (prefix)clear (example: 5) it deletes 5 messages?

This link should help. MessageManager#delete | discord.js
If you need more help feel free to reply.

Happy coding!