need bit help in a cleaning script

hi guys , i need to set a little script to clean /tmp periodically and i ve been asked to put a confirmation before deleting like : " Deleting old /tmp files : yes/no ? " because it ll be part of a menu for a user

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.