I’m working with the JIRA SOAP API and need to delete file attachments from issues. I’ve been going through the documentation but can’t find any methods that would allow me to remove attachments. I can see methods for adding attachments and retrieving them, but nothing for deletion. Has anyone successfully removed attachments using the SOAP service? I’m wondering if there’s a specific method I’m missing or if this functionality isn’t available through the SOAP interface. Any guidance would be helpful.
ur totally right! SOAP just cant deal with deletions. switching to REST or even deleting via the UI is the way to go. kinda frustrating, but that’s how JIRA works, ya know?
Indeed, the limitation of JIRA’s SOAP API in handling attachment deletions is well-known and has persisted over time. The SOAP API primarily supports fundamental issue-related operations, neglecting comprehensive attachment management. If you’re required to continue using SOAP for your overall integration, consider adopting a hybrid strategy. You can retain SOAP for core functionalities while utilizing REST endpoints specifically for attachment deletions, such as DELETE /rest/api/2/attachment/{id}. Ensure your authentication is appropriately configured, as this won’t disrupt your existing SOAP usage.
yep, i agree! SOAP just doesn’t cut it for deletions. switching to REST is def what you need, it’s way easier for that stuff. hope you figure it out soon!
Yeah, you’ve hit a real JIRA SOAP API limitation. I’ve dealt with various JIRA integrations over the years and can confirm - attachment deletion just isn’t supported through SOAP. The SOAP API was built for basic CRUD operations on issues, so attachment management is pretty limited. When I ran into this same problem with a legacy system that used SOAP heavily, I ended up using direct database queries through JIRA’s backend. Fair warning though - this approach needs careful handling for data integrity and isn’t officially supported. You could also mark attachments as obsolete in your app logic instead of actually deleting them, depending on what you need.