SudoMock icon

SudoMock

Generate PSD mockups, photo mockups and product videos for Print-on-Demand automation. Upload PSDs, turn product photos into mockups, render with your designs, render videos, run renders asynchronously, track jobs, and manage webhooks.

Actions229

Photo Mockup → Artwork: Delete Stored Files

AI-generated

Summary

Delete stored artwork files associated with photo mockups either by specifying their URLs or by providing the UUID of a mockup to delete all related artwork files.

Inputs

  • Delete By (required) — Choose whether to delete artwork by specifying URLs or by providing a mockup UUID to delete all artwork for that mockup.
  • URLs (required) — A JSON array of stored artwork or preview URLs to delete (required if 'Delete By' is 'URLs').
  • Mockup UUID (required) — The UUID of the mockup whose all stored artwork should be deleted (required if 'Delete By' is 'Mockup UUID').

Output shape

a single JSON object containing the operation's response, typically with success status and related information.

The response includes success status and details if the deletion was successful. If deleting by URLs, the input must be a non-empty JSON array of strings; otherwise, the node throws an error.

Examples

Example 1: Delete artwork files by specifying their URLs

Set 'Delete By' to 'URLs' and provide a valid JSON array of artwork URLs under 'URLs'.

Example 2: Delete all artwork files associated with a specific photo mockup

Set 'Delete By' to 'Mockup UUID' and specify the mockup UUID to delete all associated artwork files.

Links

Discussion