Delete file from aws(arc) fom postgres trigger

how can I get the whole path by calling the uploader? what function do I need to call?