Update check-delete.js

Added user confirmation before deleting.