added before_destroy hook to delete the objects from S3