Delete Proposal
Proposals
Delete Proposal
Permanently delete a proposal and all associated resources including S3 files, vectors, and DynamoDB records.
DELETE
Delete Proposal
Authentication
This endpoint requires authentication via Bearer token.Path Parameters
The proposal identifier. Can be either:
- UUID format:
a1b2c3d4-e5f6-7890-abcd-ef1234567890 - Proposal code format:
PROP-20260304-A1B2
Response
Confirmation message indicating successful deletion.
The proposal code of the deleted proposal.
Summary of cleanup operations performed.
Example Requests
Response Example
Error Responses
Deletion Process
When you delete a proposal, the system performs the following cleanup operations:1. Vector Embeddings Deletion
Deletes all vector embeddings associated with the proposal from the S3 vector store. This includes:- Document embeddings
- Semantic search indices
- Reference proposal embeddings
2. S3 Files Deletion
Deletes all files stored in S3 under the proposal’s folder, including:- RFP documents
- Concept documents
- Reference proposals
- Generated documents
- Analysis results
{proposal_code}/ are removed from the S3 bucket.
3. DynamoDB Metadata Deletion
Removes the proposal’s metadata record from DynamoDB, including:- Basic proposal information
- Analysis results
- Processing status
- User associations
Notes
- Access Control: Users can only delete their own proposals. Attempting to delete another user’s proposal returns a 403 error.
- Flexible ID Format: You can use either the UUID or the proposal code (PROP-20260304-A1B2) to identify the proposal.
- Complete Cleanup: The endpoint ensures all associated resources are cleaned up across S3, vector store, and DynamoDB.
- Non-Critical Errors: Vector and S3 deletion failures are logged but don’t prevent the operation from completing. The DynamoDB deletion always succeeds.
- Resource Status: The
cleanup_summaryshows “attempted” for S3 and vector operations (which may fail gracefully) and “completed” for the guaranteed DynamoDB deletion.
Best Practices
- Confirmation: Implement a confirmation dialog in your UI before calling this endpoint.
- Error Handling: Handle 404 errors gracefully (proposal may have already been deleted).
- User Feedback: Show the cleanup summary to users to confirm which resources were removed.
- Audit Trail: Consider logging deletion requests for audit purposes before calling this endpoint.