You are allowed to delete your post for 5 minutes after it's posted.
Delete
You must have a user account and be signed to perform this action.
another good idea is to poke through the code of some blocks in the MP that might do some of what you are trying to do:
http://www.concrete5.org/documentation/developers/files/files-and-f...
take a look at the 'list files from set' block for handy info on how to call a files information.