Have a look in books online at the dbcc command, you can shrink a file or database using it. If the log file is too large do a transaction log backup and then shrink the file but if it is the transaction log then the backup will need to be done regularly - see the recovery models in books online.
If the data files are getting too big and you've looked into the above then you may need to get more disk space.