Steps:
- Visit {nav Profile > Manage > Edit Profile Picture}
- Upload a Picture
- Turn back to {nav Profile > Manage}
- Visit the filename of that new Picture (but also any old picture) (pictures are mentioned from the right sidebar)
What happens:
- File is not editable: «No one can take this action»
- File cannot be deleted: «No one can take this action»
- (File can only be detached)
What should happen instead:
- File should be Editable by the Author (to update its quality for example)
- File should be Deletable by the Author (to fix a huge mistake for example)
So, in short, profile images are shown here forever, and cannot be deleted by their users:
{F2179193}
## What happens
```
*************************** 42. row ***************************
id: 43
phid: PHID-FILE-wzbdm6d76sa3bqpvgf23
name: Screenshot_20240204_101538.png
mimeType: image/png
byteSize: 389182
storageEngine: blob
storageFormat: raw
storageHandle: 31
dateCreated: 1714856499
dateModified: 1714856499
authorPHID: PHID-USER-mutepdoozum2ey2pm7of
secretKey: jkdb3d3xoo5xyvmo2dhd
contentHash: fe2a9511cb1ab4ac2eedff6e32aff01fd96778e680005f5741e8b9c2758f81ad
metadata: {"storage":[],"width":1920,"height":1080,"canCDN":1}
ttl: NULL
isExplicitUpload: 0
mailKey: fqgie335f3qu2jc3t2es
viewPolicy: users
isPartial: 0
builtinKey: NULL
isDeleted: 0
*************************** 43. row ***************************
id: 44
phid: PHID-FILE-anvsulbhvqsxguk65tid
name: profile
mimeType: image/png
byteSize: 59341
storageEngine: blob
storageFormat: raw
storageHandle: 32
dateCreated: 1714856499
dateModified: 1714856499
authorPHID: NULL ← ← ← ← ←
secretKey: dzvuzmanku2aayk3x36v
contentHash: 9de9a20b98478c40fa94b52c2aea3e4db5736994bb88766ce3021f0caa4b49d6
metadata: {"storage":[],"width":400,"height":400,"canCDN":1,"profile":true}
ttl: NULL
isExplicitUpload: 0
mailKey: du26qw5527bwxnttww4k
viewPolicy: users
isPartial: 0
builtinKey: NULL
isDeleted: 0
```
```sql
SELECT * FROM file_transformedfile WHERE originalPHID = 'PHID-FILE-wzbdm6d76sa3bqpvgf23';
Empty set (0,001 sec)
```
## Workaround
Having shell access in the Phorge server and run the destroy workflow from the `phorge/` directory:
```
./bin/remove destroy F47
```
P.S. For historical details about this beautiful workflow, see here:
https://we.phorge.it/rP985eb26c7e32cdc19536769def6ab037645100fb