Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 789 Bytes

deleting-entries.md

File metadata and controls

31 lines (23 loc) · 789 Bytes

Delete an Entry or Draft Entry

Delete an Entry

You can use the deleteGfEntry mutation to delete a Gravity Forms entry. The entryId of the deleted entry will be in the response.

Example Mutation

mutation {
  deleteGfEntry(input: { id: 5 }) {
    deletedId
  }
}

Delete a Draft Entry

Similarly, you can use deleteGfDraftEntry to delete a Gravity Forms draft entry. The resumeToken of the deleted draft entry will be in the response.

Example Mutation

mutation {
  deleteGfDraftEntry(
    input: { id: "524d5f3a30c845b29a8db35c9f2aaf29", idType: 'RESUME_TOKEN' }
  ) {
    deletedId
  }
}