How to delete an attachment?

Hi all,

Need some help. I’m making an HTTP DELETE request from my Android app to
delete an attachment (which is associated to an expense) using the
“/attachments/290301” identifier (where 290301 is an example attachment-id).

I’m getting back a 200 OK status code but it seems nothing has actually
been done and the attachment remains and has not actually been deleted. Any
ideas what I’m doing wrong or what I need to do different?

Additional info: My “expense” objects which have an “attachment” object
associated to them come back in the following xml format…

867948 ... 285478 867948 Expense

Regards,
Adil

Hi Ali

Sounds strange. Could you maybe try it again and, assuming it fails, ping
me by email with the date/time and attachment ID so I can dig in the logs?

Cheers
Olly

Thanks Olly. Sending you details following this email…On Sat, Nov 5, 2011 at 8:20 PM, Olly oheadey@gmail.com wrote:

Hi Ali

Sounds strange. Could you maybe try it again and, assuming it fails, ping
me by email with the date/time and attachment ID so I can dig in the logs?

Cheers
Olly


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/2O2uA3IClgUJ.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

For the record: Solved it (thanks to Olly). I wasn’t setting the “Accept:
application/xml” header in my request.