Homepage

upload_delete

Last edit: Oct 13, 2026

Removes the stored files (including generated versions) of one or all upload
properties of a record, user or user profile. The property values themselves
are not changed. Runs in a background job unless sync is true. Provide exactly
one of attribute_name and delete_all_properties

upload_delete(
  attribute_name: String
  delete_all_properties: Boolean
  sync: Boolean
  upload_object_id: ID!
  upload_object_type: ObjectsWithUploadsEnum!
): ObjectUpload!

Arguments

attribute_name (String)

Name of the upload property whose files are removed

delete_all_properties (Boolean)

Set to true to remove the files of all upload properties of the object

sync (Boolean)

When true, the files are removed before the mutation returns and errors are reported in the result

upload_object_id (ID)

ID of the object that owns the uploads

upload_object_type (ObjectsWithUploadsEnum)

Type of the object that owns the uploads

Type

ObjectUpload

Result of deleting property uploads of an object

Questions?

We are always happy to help with any questions you may have.

contact us